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 |
|---|---|
| 55 | |
| 37 | |
| 23 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 58 | |
| 39 | |
| 21 | |
| 21 |