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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Cumulative sum with filter issue.

Hi,

I am using this formula to get cumulative value, but it stopps working once applied slicer. Can you please help me to change it?

 

CUMULATIVE MISSED = Calculate([SUMofMISSED],Filter(All('Stockfill Data'[Material],'Stockfill Data'[Material Number],'Stockfill Data'[ABC]),sum('Stockfill Data'[MISSED])<=[SUMofMISSED]))
 
Thank you in advance,
1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

I'm sorry because you didn't provide sample data, and I can't give you a completely correct answer.
However, if you want your measure to be independent of the slicer, a common option is to use the "ALLSELECTED" function. This function returns all values in the column, including those that are not selected in the slicer. For more information on how to use this function, you can refer to the following documentation:
ALLSELECTED function (DAX) - DAX | Microsoft Learn
If you'd like to provide sample data, I'd be happy to try to figure it out for you! But be careful not to include privacy in the sample data.

Best Regards,

Dino Tao

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.