Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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])))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
14 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |