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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Kristofferaabo
Helper IV
Helper IV

Cumulative sum for a line chart

Hi,

 

I have a set of data with a a column of meeting dates each for a 'sale', I would like to make a chart visualizing this sale growing over time. (cumulative sum??)

 

Y axis total sale (count of the sale=, X axis meeting date

Please find a screenshot of my dataset

 

Thanks

Kristoffer

cumulative_calc.jpg

 

 

2 ACCEPTED SOLUTIONS
deldersveld
Resident Rockstar
Resident Rockstar

Try the "Running Total" Quick Measure and total it over date.

View solution in original post

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Kristofferaabo,

 

You could create the measure below to get the cumulative sum of the sales.

 

total =
CALCULATE (
    SUM ( table5[count of sales] ),
    FILTER (
        ALL ( table5 ),
        'table5'[Meeting date] <= MAX ( 'table5'[Meeting date] )
    )
)

 Then you will get your excepted line chart.

 

11Capture.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Kristofferaabo,

 

You could create the measure below to get the cumulative sum of the sales.

 

total =
CALCULATE (
    SUM ( table5[count of sales] ),
    FILTER (
        ALL ( table5 ),
        'table5'[Meeting date] <= MAX ( 'table5'[Meeting date] )
    )
)

 Then you will get your excepted line chart.

 

11Capture.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-piga-msft 

Would it be possible to add a grouping condition to that. Say I have a column category, then I would like the cummulative sum to be at a category level.

deldersveld
Resident Rockstar
Resident Rockstar

Try the "Running Total" Quick Measure and total it over date.

Really neat solution, thanks! 😎

Thanks a lot!! This was an easy solution that saved me a lot of time.

Anonymous
Not applicable

Thanks for the quick solution 🙂

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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