Forum Discussion

67nmark's avatar
67nmark
Helper I
6 years ago
Solved

DAX calculated column- get previous record value

Hello, I've looked for answers but can't get what I want. Essentially I need a column that brings the value associated with a previous date onto the current row. The image below shows the requirement. I would like the Tester column to show the previous date's value for each person. The DAX I have has a hard coded date that works for a the most recent dates but as I go down the column it (obviously) starts failing. Any help much appreciated.

  • Try this

     

    Last Val = CALCULATE(LASTNONBLANK('Table'[Value],'Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Name]),'Table'[Date]<EARLIER('Table'[Date])))

4 Replies