Apparently, you can't use dimensional analysis to derive the formulae of quantities which depend on more than three other, different, composite quantities. Why is this so? The argument I've seen for it is that four different quantities would bring four variables into play (the powers of each of the quantities) but with only just the three equations that would result once we tidy it up into the terms of fundamental quantities, the system would not be solvable.
But it aren't just the most common M, L, and T that are fundamental (if they were, it makes sense why it'd work out that way), so isn't it possible that there could be a formula in terms of four composite quantities, which can be represented in terms of four different fundamental quantities, which would then give a solvable system? Then again, isn't it also possible that there are quantities depending only on three other quantities, but which when represented in fundamental quantities, only use two fundamental quantities? In such a case, the resulting system wouldn't be solvable.
In short, it doesn't seem like the number of initial composite quantities (the number of unknowns) is the only factor that matters; the number of fundamental quantities (the number of equations) that the expression is finally reduced to, also plays a role. In general, whether the resulting system is consistent with a single solution is the condition we need to be true to use dimensional analysis.
Where did I go wrong here for the rule to remain correct?