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 September 15. Request your voucher.

Reply
JB7167
New Member

Building a clustered column chart using a cumulative Sum function with slicer/filtering capability

I am looking to build a visualization that plots cumulative monthly spend from Jan-Dec. The month parameters will be on the x axis and the values on the y axis. My data looks like this (it is much longer so I have cropped it). 

JB7167_1-1730402081856.png

My goal is to be able to use a slicer to filter the cumulative monthly spend by sub-division. I run into the issue of the filter option not transalting to the visual once the cumulative formula is built. 

 

The cumulative formula should work like this: (ie. the cumulative column totals all spend of the prior months.

JB7167_2-1730402340655.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JB7167 ,

 

Do you mean that your cumulative measure doesn't work when you select the slicer? Could you please show DAX of measure and screenshots of the error?

 

You can also try this DAX firstly.

Cumulative Actuals = CALCULATE(SUM('Table'[Actuals]),ALL('Table'),MONTH('Table'[Date])<=MONTH(MAX('Table'[Date])))

vmengmlimsft_0-1730706281920.png

 

 

Best regards,

Mengmeng Li

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @JB7167 ,

 

Do you mean that your cumulative measure doesn't work when you select the slicer? Could you please show DAX of measure and screenshots of the error?

 

You can also try this DAX firstly.

Cumulative Actuals = CALCULATE(SUM('Table'[Actuals]),ALL('Table'),MONTH('Table'[Date])<=MONTH(MAX('Table'[Date])))

vmengmlimsft_0-1730706281920.png

 

 

Best regards,

Mengmeng Li

Ritaf1983
Super User
Super User

Hi @JB7167 there are many methods to achieve the wanted results.

Please refer to the linked videos:

https://www.youtube.com/watch?v=u-zW-6s8zL0

https://www.youtube.com/watch?v=srLCYBffKr4

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
vicky_
Super User
Super User

Have you tried using the new visual calculations feature to grab the running sum: https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview ?

Based on the documentation, it should work with clustered column charts / matrix visuals.

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.