Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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])))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 8 |