Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Return the last value with specific conditions

Not sure really how to title this one   I have a table that i want to add a calculated column to, to give me a Gold/Silver/Bronze category (already created) by the store ID. So in the image below, ...
  • Ashish_Mathur's avatar
    8 years ago

    Hi,

     

    Try this calculated column formula

     

    =IF(Data[Date]=CALCULATE(MAX(Data[Date]),FILTER(Data,Data[ID]=EARLIER(Data[Date])&&Data[CycleName]=EARLIER(Data[CycleName]))),Data[GSB],BLANK())

     

    Hope this helps.