Even if a physical quantity depends upon three quantities, out of which two are dimensionally same, then the formula cannot be derived by the method of dimensions. This statement
The mass of a liquid flowing per second per unit area of cross section of a tube is proportional to $P^x$ and $v^y$ , where $P$ is the pressure difference and $v$ is the velocity. Then, the relation between $x$ and $y$ is