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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am trying to calculate a cummulative running total in Power BI Desktop, using a table and DAX calulation for a manufacturing company. The table starts with shift, hour, SKU, target, and then TargetRT ( which should be the running total).
DAX follow:
Solved! Go to Solution.
Hi, Thank you for responding. I think that I found a solution:
If so, it was accomplished by making a couple of changes to you measure(s).
TargetRT =
// VAR MaxShift = MAX( 'data tbl'[Shift] ) // NOT referenced
VAR MaxHour = MAX( 'data tbl'[Hour] )
// VAR MaxShiftHour = MAX( 'data tbl'[ShiftHourSort] ) // NOT referenced.
// also what is [ShiftHourSort]?
VAR Result =
CALCULATE(
SUM( 'data tbl'[Target] ),
'data tbl'[Hour] <= MaxHour,
ALL(
// 'data tbl'[SKU], // not sure why this is included
'data tbl'[HourlyStatus]
)
)
RETURN
Result
TargetRT 2 =
VAR MaxHour = MAX( 'data tbl'[Hour] )
VAR Result =
CALCULATE(
SUM( 'data tbl'[Target] ),
'data tbl'[Hour] <= MaxHour,
ALL(
'data tbl'[HourlyStatus]
)
)
RETURN
Resultpbix: https://1drv.ms/u/s!AnF6rI36HAVkhPIbeTLZTbtHAYrgSw?e=t4yIxT
Please let me knowif this works. Otherwise, please provide a more descriptive requirement.
Hi, Thank you for responding. I think that I found a solution:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |