Forum Discussion
Anonymous
3 years agoNot applicable
How to get moving average on monthly
HI, all I'd like to get monthly moving average by making measure as below, but it may not work well Could you please help me ------------------------------------------------------------ <Me...
mangaus1111
Solution Sage
3 years agoHi Anonymous ,
try this measure
Moving Average Last 2 Months =
VAR _MaxMonth = MAX('Date'[Year*Month])
RETURN
CALCULATE(AVERAGEX('Facts5','Facts5'[Sales]),
'Date'[Year*Month]>= _MaxMonth -1 && 'Date'[Year*Month] <= _MaxMonth
)If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.