Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 .
Solved! Go to Solution.
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)
Try something like this
Proud to be a Super User!
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)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |