Forum Discussion
Stopping a Cumulative Earned Value Measure at a Certain Point
- 3 years ago
In your Calendar table add a column called CurrentWE
CurrentWE = CALCULATE(MAX('Calendar'[Week Ending]), Filter('Calendar', 'Calendar'[Date] = TODAY()))Then the new RunningTotal Measure
Cumulative EV Labor = VAR MaxDate = MAX('Calendar'[Date]) RETURN CALCULATE([Earned Labor], KEEPFILTERS( 'Calendar'[Date] <= MaxDate && MaxDate < = 'Calendar'[Current WE] ), ALL('Calendar'))Thanks
Joe
If this post helps, then please Accept it as the solution
In your Calendar table add a column called CurrentWE
CurrentWE = CALCULATE(MAX('Calendar'[Week Ending]), Filter('Calendar', 'Calendar'[Date] = TODAY()))
Then the new RunningTotal Measure
Cumulative EV Labor =
VAR MaxDate = MAX('Calendar'[Date])
RETURN
CALCULATE([Earned Labor],
KEEPFILTERS( 'Calendar'[Date] <= MaxDate && MaxDate < = 'Calendar'[Current WE] ),
ALL('Calendar'))
Thanks
Joe
If this post helps, then please Accept it as the solution
- Dylo_Bloomfield3 years agoFrequent Visitor
Thanks Legend, Worked a Charm!!!
- Dylo_Bloomfield3 years agoFrequent Visitor
JoeBarry just quickly I have noticed that the Earned Valuee line isn't going through to the 29/08/2023.
See Below.
What could be the error resulting in this?
Thanks Joe
- JoeBarry3 years ago
Solution Sage
I think I know the error, can you change the part of the code from
< = 'Calendar'[Current WE] ),
to <= there is a space between them and it shouldn't be like this.
Also confirm that the CurrentWE date is 05/09/2023
Also check if the Cumulative forecast measure isn't covering the line. it may do if they have the same values. Just remove it from the visual for the moment.
Let me know if this helps
- Dylo_Bloomfield3 years agoFrequent Visitor
I have taken the spacing out from the formula and it is still the same.
Hiding the Cumulative Forecast I can see it hasn't made it to the 29/08/2023.
Could it be the CurrentWE formula?
Thanks Joe