Forum Discussion
Multiple filters AVERAGEX - Orders/Month
I have the currently existing Measure to calculate the average number of orders per month:
Please try the following:
AVG Orders/Month of 2022 = CALCULATE( AVERAGEX( KEEPFILTERS(VALUES('Doc Date Calendar'[Month])), CALCULATE(DISTINCTCOUNT('UK Sales TOTAL'[Doc Number])) ), Filter(ALL(DateTable),DateTable[Year] = 2022) )Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
-----------------------------------------------------
2 Replies
- MikelyticsResident Rockstar
Please try the following:
AVG Orders/Month of 2022 = CALCULATE( AVERAGEX( KEEPFILTERS(VALUES('Doc Date Calendar'[Month])), CALCULATE(DISTINCTCOUNT('UK Sales TOTAL'[Doc Number])) ), Filter(ALL(DateTable),DateTable[Year] = 2022) )Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
-----------------------------------------------------
- Chris_RuddickFrequent Visitor
That works perfectly, thank you!