The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I have calculated measure (values) and I want to see moving average based on weeks.
This is what it should look like:
Week | values | moving average - should be |
1 | 187 750 | 187 750 |
2 | 493 333 | 340 541,5 |
3 | 775 840 | 485 641 |
I tried this formula but it shows wrong values:
@evadung , You have to try a measure like
Cumm Sales = CALCULATE(AverageX(Values('Date'[Week Year]), CALCULATE(SUM(Sales[Sales Amount]))),filter(all('Date'),'Date'[date] <=max('Date'[date])))
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |