Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I am trying to calculate moving Average for the below data:
I greatly appreciate some help in DAX script.
I do not have any Date/Calender table.
Thanks
Running Average Measure = DIVIDE(CALCULATE(
SUM('Table1'[10 Week]),
FILTER(
ALLSELECTED('Table1'[Date]),
ISONORAFTER('Table1'[Date], MAX('Table1'[Date]), DESC)
)
),
CALCULATE(
COUNTA('Table1'[10 Week]),
FILTER(
ALLSELECTED('Table1'[Date]),
ISONORAFTER('Table1'[Date], MAX('Table1'[Date]), DESC)
)
)
)
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 30 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 71 | |
| 59 | |
| 39 | |
| 22 | |
| 22 |