Forum Discussion
martipe1
2 years agoHelper II
Moving Average
I need a moving average in the future and I expect to have a different value every month, the dax function I use is: AVRG = CALCULATE ( AVERAGEX ( KMR, KMR[MQTY] ), DATESINPERIOD ( ...
- 2 years ago
You are welcome. This measure works
Measure = divide(calculate(sum(kmr[mQty]),datesbetween(calendar[date],min(calendar[date]),eomonth(min(calendar[date]),2))),3)Hope this helps.
Ashish_Mathur
2 years agoSuper User
You are welcome. This measure works
Measure = divide(calculate(sum(kmr[mQty]),datesbetween(calendar[date],min(calendar[date]),eomonth(min(calendar[date]),2))),3)
Hope this helps.
martipe1
2 years agoHelper II
Thank you very much Ashish_Mathur !!!
That did work perfectly.
I have another question regarding this measure, but will post it as another question and will tag you and mark this answer as accepted solution.
- Ashish_Mathur2 years agoSuper User
You are welcome.