Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 18 | |
| 14 | |
| 14 | |
| 10 | |
| 9 |