Forum Discussion

ArchStanton's avatar
ArchStanton
Icon for Power Participant rankPower Participant
1 year ago
Solved

Latest Value Measure not Working

Hi I have the following table located in an Excel Tab called 18mth+ Closed The latest value my measure is showing is 1109 which is 3 months ago! Why isn't the measure showing 1...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi ArchStanton ,

     

    1. Desktop --> home pane --> transform data --> transform data

    2. Powerquery editor --> add column --> index column --> close and apply.

    Modify the measure:

    LatestValue18mths+ Closed = 
        VAR _lastindex = 
                CALCULATE(MAX('18mth+ Closed'[Index]),
                FILTER('18mth+ Closed','18mth+ Closed'[KPI] <> BLANK() )
                )
        RETURN
            CALCULATE(
                    MAX('18mth+ Closed'[KPI]),
                    FILTER ('18mth+ Closed', '18mth+ Closed'[Index] = _lastindex)
            )

    and the output:

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum