This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 33 | |
| 26 | |
| 23 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 43 | |
| 28 | |
| 24 | |
| 22 |