This is a complex question, and would help if you have details. There are many ways to answer it, and different philosophies on it.
Variables such as whether it is a coral tank, or aggression with fish, behaviors of fish, etc come into play.
There are general rules, but these are often misleading.
The water quality is a factor, yes, but so is health of the fish and generally failure to "thrive" (aka grow). That should always be cause for concern.
So basically this is a tank to tank discussion, and we would need details of your tank, inhabitants, filtration, and goals.