Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey,
How can I create a stacked chart where each subsequent data point represents the cumulative sum of the previous values?
Solved! Go to Solution.
Hi @harry6810
You would need to create a cumulative measure
Culumative Amount =
VAR MaxDate = MAX ( 'Date'[Date] )
RETURN
CALCULATE (
[Sales Amount], /// Sum of the amountin your table or a count of an id
'Date'[Date] <= MaxDate,
ALL ( Date )
)
There are also a number of Time Intelligence measures you could use like
TOTALYTD = TOTALYTD([SalesAmount], 'Date'[Date])
TOTALQTD = TOTALQTD([SalesAmount], 'Date'[Date])
TOTALMTD = TOTALMTD([SalesAmount], 'Date'[Date])
Hope this helps
Joe
Proud to be a Super User! | |
Date tables help! Learn more
Hi @harry6810
You would need to create a cumulative measure
Culumative Amount =
VAR MaxDate = MAX ( 'Date'[Date] )
RETURN
CALCULATE (
[Sales Amount], /// Sum of the amountin your table or a count of an id
'Date'[Date] <= MaxDate,
ALL ( Date )
)
There are also a number of Time Intelligence measures you could use like
TOTALYTD = TOTALYTD([SalesAmount], 'Date'[Date])
TOTALQTD = TOTALQTD([SalesAmount], 'Date'[Date])
TOTALMTD = TOTALMTD([SalesAmount], 'Date'[Date])
Hope this helps
Joe
Proud to be a Super User! | |
Date tables help! Learn more
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 68 | |
| 66 | |
| 64 |