Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi guys,
I have this dax function that takes the cumulative sum of a measure. I want to keep the cumulative sum, but have it reset every 3 months. Does anyone have an idea on how to modify what I currently have to rest cumulative sum for every 3 months?
Solved! Go to Solution.
Ok I think I figured out the syntax. Turns out I just needed to partition by quarter.
cumulative sum = CALCULATE([expected revenue sum],
WINDOW(
1,ABS,
0,REL,
SUMMARIZE(
ALLSELECTED(BDX_NEW_BUSINESS_TARGETS),
BDX_NEW_BUSINESS_TARGETS[rolling_date_test],
BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter]),
ORDERBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test]),,PARTITIONBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter])))
Ok I think I figured out the syntax. Turns out I just needed to partition by quarter.
cumulative sum = CALCULATE([expected revenue sum],
WINDOW(
1,ABS,
0,REL,
SUMMARIZE(
ALLSELECTED(BDX_NEW_BUSINESS_TARGETS),
BDX_NEW_BUSINESS_TARGETS[rolling_date_test],
BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter]),
ORDERBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test]),,PARTITIONBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter])))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |