Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I made the following measure:
AVG last 12 Actual months =
VAR End_date = DATE ( YEAR(MAX('End of Month Table'[End of month])) , MONTH (MAX('End of Month Table'[End of month]) )-1 , DAY ( MAX( 'End of Month Table'[End of month])))
VAR Begin_date = DATE ( YEAR(MAX('End of Month Table'[End of month])) , MONTH (MAX('End of Month Table'[End of month]) )-13 , DAY ( MAX( 'End of Month Table'[End of month])))
RETURN
CALCULATE([SumAmount 1000s] ,
'Date','Date'[Date] <= End_date && 'Date'[Date] > Begin_date
)Hi @Anonymous ,
If you want to ignore the oringinal context, you could use ALL() funtion.
Not sure I got it completely
But this formula should be something like this
CALCULATE([SumAmount 1000s] ,all('Date'[Date]),'Date'[Date] <= End_date && 'Date'[Date] > Begin_date )
| User | Count |
|---|---|
| 57 | |
| 44 | |
| 32 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 84 | |
| 70 | |
| 38 | |
| 27 | |
| 24 |