Forum Discussion

JB7167's avatar
JB7167
New Member
1 year ago
Solved

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). 

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.

 

 

  • Anonymous's avatar
    Anonymous
    1 year ago

    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])))

     

     

    Best regards,

    Mengmeng Li

3 Replies