Forum Discussion

Cbutler's avatar
Cbutler
Helper III
5 years ago
Solved

Previous value not working??

Hi there,  I have a simple table which outlines a measure name, the RAG of that measure against a date (quarter ending date). The table doesnt have dates for every day, just on the quarter endi...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    5 years ago

    Hi,

    This calculated column formula works

    Column = LOOKUPVALUE('RAG by measure ID'[RAG],'RAG by measure ID'[Measure ID],'RAG by measure ID'[Measure ID],'RAG by measure ID'[Date],CALCULATE(MAX('RAG by measure ID'[Date]),FILTER('RAG by measure ID','RAG by measure ID'[Measure ID]=EARLIER('RAG by measure ID'[Measure ID])&&'RAG by measure ID'[Date]<EARLIER('RAG by measure ID'[Date]))))

    Hope this helps.