The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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,