Forum Discussion

JP-Siloam's avatar
JP-Siloam
Frequent Visitor
4 years ago
Solved

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.

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!