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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Cumulative line chart

Hi. 

 

Hi. 

How do I make a cumulative line chart? I tried to do the "running totals" in quick measurement but it shows me a incorrect visual perhaps I used the wrong measurements. 

 

I would like to have a rising line so e.g. 06/09/2022 has a total of 4 and not 1. 

 

lavmads_0-1667308279144.png

 

Best regards,

Lisa 

4 REPLIES 4
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

try this measure

RT  =

VAR CurrentDate= SELECTEDVALUE (Date[Date] )

RETURN

    CALCULATE (

        [Your Measure],

        Date[Date]<= CurrentDate

    )

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Create a measure with help from date table and use that in line, where date on axis will be from date table

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

Running Total/ Cumulative: https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=41

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

But what if my values is not numeric? It is not a sales value but the occurrence of different categories. 

Can I still use the same equation? 

Hi @Anonymous 

Thanks for reaching out to us.

Just need to make small changes to the code, you can share some sample data then I'll change the code to suit your needs.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.