Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello Folks
I'm looking to create a measure to calculate cumulative budget based on distinct week by customer. The data looks something like this:-
The objective is to show table with [CLIENT] || [CUMULATIVE BUDGET] dynamically change when i select the slicer
I manage to create a measure, but somehow it is not showing the desired results.
**bleep** Bud Vol = CALCULATE(sum(BUDGET[AMOUNT]),
filter(VALUES(DATES),
DATES[Week]<= MAX(DATES[Week])))
Any help, please.
Thanks once again, much appreciated.
I tweaked the DAX according to my report attributes, no value showing up. For more clarification, i'm attaching more details about my report requirement and data model.
Hope this make more sense. Please see my DAX based on your suggestion
Absolute Cumulative Budget =
var __absoluteMaxYearWeek =
CALCULATE(
MAX( BUDGET[Year-Week] ),
ALL( BUDGET )
)
var __currentYearWeek = MAX( DATES[Year-Week] )
var __minYearWeek = MIN( DATES[Year-Week])
var __result =
CALCULATE(
[Act Vol (Tr)],
DATES[Year-Week] <= __currentYearWeek,
ALL( DATES )
)
var __onlyOneYearVisible = HASONEVALUE(DATES[Year])
var __currentPeriodNotFullyInTheFuture =
__minYearWeek <= __absoluteMaxYearWeek
var __shouldCalc =
and(
__onlyOneYearVisible,
__currentPeriodNotFullyInTheFuture
)
return
if( __shouldCalc, __result )
Thanks for reminding me @Anonymous . I've added the dates in the table, please see below the revised datasets. Hope this make sense to get the measure based on Cumulative Budget based on distinct week by Customer
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |