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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi, I have a question,
As you can see I want to calculate the Cumulative sum of Emp hours Week Except Week 0.
and Emp hours week is a measure ( not a coloumn )
How do I achieve that?
Can you help with this?
i want it something like
Cumulative Sum
800
1600
.
.
.
.
Solved! Go to Solution.
HI ALL,
the solution is :
@Anonymous this should give you what you need
_runningTotal =
CALCULATE (
[Emp hours Week],
FILTER (
ALL ( 'Table'[WeekNum] ),
'Table'[WeekNum] <= MAX ( 'Table'[WeekNum] )
)
)
HI ALL,
the solution is :
The solution
hi,
I used your formula and got this,still the same values
Try this Click here to download PBIX
How is works ...
hi,
In answer to your question "how do I use emp hours as a measure?"
It depend on the complexity of the measure.
It is somethign simple like
emphours = SUM(Facts[Emp Hours])
then this will produce excatly the same answer as before
see Click here to download PBIX
how it works ....
a measure is not a stoire varible. it has to be recalculate in contect each time it is referenced.
So if you imbed a measure within CALCULATE and ALL context then it will alter the contect accordingly, unless your first measure has conflicting commands which the second cant override,
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 13 | |
| 11 | |
| 8 | |
| 7 | |
| 6 |