Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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])))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
10 | |
9 | |
8 |