The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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:
Date | Category | Value |
1/1/2022 | A | 10 |
2/1/2022 | A | 10 |
3/1/2022 | A | 10 |
4/1/2022 | A | 10 |
5/1/2022 | A | 10 |
6/1/2022 | A | 10 |
7/1/2022 | A | 10 |
8/1/2022 | A | 1000000 |
1/1/2022 | B | 10 |
3/1/2022 | B | 10 |
5/1/2022 | B | 10 |
7/1/2022 | B | 10 |
8/1/2022 | B | 10 |
Thanks y'all!
Solved! Go to Solution.
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.
Thanks Dave! That worked perfectly!
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
82 | |
64 | |
58 |
User | Count |
---|---|
248 | |
123 | |
112 | |
79 | |
78 |