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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.