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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JP-Siloam
Frequent Visitor

Cumulative Sum with multiple slicer dates

I need to create two measures that each calculate the cumulative sum from the earliest data (date from will never change) up to user set dates.   For the final result, I want a table that combines the two in the blue box below.  Categories down the side and each measure in a column showing the cumulative sum.

JPSiloam_0-1660755504983.png

I've read the dax patterns page, especially the "First and last date with data" section.  I've tried several times, using Between Slicer and two individual slicers, but just can't get the slicer filters and measure filters to play nice and get the dates set correctly.  

 

Test Data used above:

DateCategoryValue
1/1/2022A10
2/1/2022A10
3/1/2022A10
4/1/2022A10
5/1/2022A10
6/1/2022A10
7/1/2022A10
8/1/2022A1000000
1/1/2022B10
3/1/2022B10
5/1/2022B10
7/1/2022B10
8/1/2022B10

 

Thanks y'all!

1 ACCEPTED SOLUTION
davehus
Memorable Member
Memorable Member

Hi @JP-Siloam , Try the attached solution. It uses disconnected date tables as the slicers. I've written the first measure as an example.

 

https://drive.google.com/file/d/10CZLxgMtiF47gwT3ctop6t0U_JgX6zqD/view?usp=sharing

 

Did I help you today? Please accept my solution and hit the Kudos button.

View solution in original post

2 REPLIES 2
JP-Siloam
Frequent Visitor

Thanks Dave!  That worked perfectly!

davehus
Memorable Member
Memorable Member

Hi @JP-Siloam , Try the attached solution. It uses disconnected date tables as the slicers. I've written the first measure as an example.

 

https://drive.google.com/file/d/10CZLxgMtiF47gwT3ctop6t0U_JgX6zqD/view?usp=sharing

 

Did I help you today? Please accept my solution and hit the Kudos button.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.