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
Is your Calendar table a Date Table? Meaning it has a row for each date, not missing a day?
Could you provide me with a screenshot of the Calendar table with the date column and todays date, with the column Week Ending & CurrentWE visible?
I need to see how it's setup
Yes, see below. Thanks Joe.
- Dylo_Bloomfield3 years agoFrequent Visitor
Joe we have figured it out on our end! The data from P6 was reading the incorrect Week Ending.
I would like to thank you for all the help on achieving this solution.
Have a good day 🙂
- JoeBarry3 years ago
Solution Sage
Ok, looking at how it's set up, based on this sturcture the CurrentWE column is correct. It will change to 05/09/2023 on Saturday.
I checked again in my data and it works. Did you adapt theCumulative EV Labor as I instructed? There was a mistake change the below section to <= there shouldn't be any space herein my dataset the current end of the week is 03/09/2023 and it works
- Dylo_Bloomfield3 years agoFrequent Visitor
Hi Joe,
Yes that has been corrected, see below my current formula.
Cumulative EV Labour S =VAR MaxDate = MAX('Calendar (Milestone Source)'[Date])RETURNCALCULATE([Earned Labour],KEEPFILTERS( 'Calendar (Milestone Source)'[Date] <= MaxDate && MaxDate <= 'Calendar (Milestone Source)'[CurrentWE] ),ALL('Calendar (Milestone Source)'))It is odd that it isn't stopping. Unless the formula is slightly off.Thanks Joe. - JoeBarry3 years ago
Solution Sage
The measure looks good. Not sure if it's possible for you to share a copy of the PBIX with me or an Excel/CSV with a copy of your data?