Forum Discussion
Creating an average from a measure?
Hi dnewton, you might want to try AVERAGEX - the iterator version of AVERAGE
- dnewton8 years agoHelper II
I've looked at a few AVERAGEX examples but can't figure out how to use this in practice.
The example of AVERAGEX I've found is...
AVERAGEX(<table>,<expression>
So I'm guessing this translates to...
AVERAGEX(<mycallstable>,<expression>)
But I don't understand what <expression> I would use.
- DAX01108 years agoResolver V
Hi dnewton, in this case <expression> would be your measure CountCalls
I found a good tutorial on this function on this page:
https://powerpivotpro.com/2010/09/averagex-the-5-point-palm-exploding-fxn-technique-revisited/
Also, like jthomson mentioned, you have to think about what you want to average over - do you want daily average? Or monthly? That would determine what the <table> argument should be.
- pawel18 years agoKudo Kingpin
try this:
averageX Count Calls monthly =
AVERAGEX (
ALLSELECTED ( 'Date'[Month]) , [CountCalls] )
averageX Count Calls weekly =
AVERAGEX (
ALLSELECTED ( 'Date'[Week]) , [CountCalls] )