Forum Discussion

Dylo_Bloomfield's avatar
Dylo_Bloomfield
Frequent Visitor
3 years ago
Solved

Stopping a Cumulative Earned Value Measure at a Certain Point

Hi,   I need some help stopping my Cumulative Earned Value measure to stop at a certain Week Ending.  See below snippet. I have drawn a red line on where I need the earned value line should...
  • JoeBarry's avatar
    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