Forum Discussion
mdjoshua94
5 years agoFrequent Visitor
Monthly Fixed Average
Dear all, How do I calculate the avarage monthly sale in a year? I want to report the values in a column chart as Total Sum/12 so that I can filter against the product type. For the above...
- 5 years ago
Hi mdjoshua94
You could add a month column and use this column in visuals. Then create a measure like below.
Average = VAR total = CALCULATE(SUM('Table'[Total Sale]),ALLEXCEPT('Table','Table'[Product])) VAR months = CALCULATE(DISTINCTCOUNT('Table'[Month]),ALLEXCEPT('Table','Table'[Product])) RETURN DIVIDE(total,months)Is this what you want?
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
v-jingzhang
Community Support
5 years agoHi mdjoshua94
You could add a month column and use this column in visuals. Then create a measure like below.
Average =
VAR total = CALCULATE(SUM('Table'[Total Sale]),ALLEXCEPT('Table','Table'[Product]))
VAR months = CALCULATE(DISTINCTCOUNT('Table'[Month]),ALLEXCEPT('Table','Table'[Product]))
RETURN
DIVIDE(total,months)
Is this what you want?
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.