Its easy to calculate averages in Access queries using the Totals method, but what do you do in the following instance?
month-------quantity
1 ------------10
2-------------0
3-------------20
4-------------0
5-------------20
The normal way would be to add up and divide by the months
ie 50/5 = 10
My problem is that i want to EXCLUDE the months where you have a ZERO quantity.
then 50/3 = 16.67
Any suggestions on how to calculate this in a Query?
month-------quantity
1 ------------10
2-------------0
3-------------20
4-------------0
5-------------20
The normal way would be to add up and divide by the months
ie 50/5 = 10
My problem is that i want to EXCLUDE the months where you have a ZERO quantity.
then 50/3 = 16.67
Any suggestions on how to calculate this in a Query?
Comment