Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NessFlood
Regular Visitor

CUMULATIVE SUM FOR MULTIPLE LINES

I am wanting a cumulative total for Actual, Budget and Forecast on the same line graph - the cumulative measure I'm using below works when I seelct my slicer but I think I need three separate measures to filter for Actual, Budget and Forecast. Ultimately I want all the lines showing on the graph to the right to also be showing on the graph to the left.

 

Can you please advise what change I need to make to this formula or a new formula?

 

CUMULATIVE VALUE =
VAR _maxdate = MAX(APPENDED[Date])
RETURN
CALCULATE(SUM(APPENDED[Value]),ALLSELECTED(APPENDED),APPENDED[Date]<=_maxdate)

NessFlood_0-1744319033309.png

 

1 ACCEPTED SOLUTION

thank you so much, that's perfect! 😃

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hi there, below is a similar graph to what I want to achieve and the data is below, thank you.

NessFlood_0-1744331858519.png

TypeDateValue
Actual1 July 2024$315,540.35
Actual1 August 2024$457,343.22
Actual1 September 2024$506,849.83
Forecast1 July 2024$315,540.35
Forecast1 August 2024$457,343.22
Forecast1 September 2024$506,849.83
Budget1 July 2024$453,725.8282
Budget1 August 2024$453,725.8282
Budget1 September 2024$453,725.8282

lbendlin_0-1744333383013.png

 

 

thank you so much, that's perfect! 😃

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.