Forum Discussion
Rajendrabobade
Helper II
5 years agoLast 3 month Average
Hello , I need last 3 month average dax , based on current month . there is no selction for month . eg: for now there is november is current month . Thank you .
- 5 years ago
If you have a date table, you can use this measure:
_Last3M = VAR _today = EOMONTH(TODAY(), 0) VAR _tbl = DATESINPERIOD('Calendar'[Date], _today, -3, MONTH) RETURN CALCULATE(AVERAGE('Table'[Sales]), _tbl)
camargos88
Community Champion
5 years ago
If you have a date table, you can use this measure:
_Last3M =
VAR _today = EOMONTH(TODAY(), 0)
VAR _tbl = DATESINPERIOD('Calendar'[Date], _today, -3, MONTH)
RETURN CALCULATE(AVERAGE('Table'[Sales]), _tbl)