Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.