Forum Discussion

FRV's avatar
FRV
New Member
1 year ago
Solved

Latest Item in a replace by chain

Hi all, I really need some help as I am struggling to get to get what I need. I want to find the latest item in a replace by chain. I tried doing it with a calculated column but that doesn't work ...
  • speedramps's avatar
    1 year ago

    Hi   FRV

     

    Try this easy method ...

     

    Clean your data and add the mssing rows and column, otherwise you will get an error message

     

     

    Add a calculated DAX column  (not Power or a measure) It must be calculated column 

    Path = PATH( yourdata[Item], yourdata[Replace by] ) 

    Note that the first item in the path is the answer you want

     

    Create another calculated colum to retrive the answer  (it must be calculated column and not a measure)

    Answer = PATHITEM(yourdata[Path],1)

     

     

    Please click thumbs up because I have tried to help.

    Then click accept solution if it works (you can see that that it does work).

     

    Learn more about the PATH function here https://www.youtube.com/watch?v=EzfLJFEKV8I