Forum Discussion

ROKRI's avatar
ROKRI
Helper I
2 years ago
Solved

Return value from another column, same table, multiple criteria, columns have blanks and repeats

Greetings All,  I am trying to populate a new column in a table based on multiple criteria from other columns. LOOKUPVALUE doesn't quite do it because most of my columns have blanks and/or repeats. ...
  • Ashish_Mathur's avatar
    2 years ago

    Hi,

    Write these calculated column formulas

    PR entry date = if(Data[Doc Type]="PO",CALCULATE(MAX(Data[Entry Date]),FILTER(Data,Data[PR #]=EARLIER(Data[PR Num])&&Data[Entry Date]<EARLIER(Data[Entry Date]))),BLANK())
    Diff = if(ISBLANK(Data[PR entry date]),BLANK(),1*(Data[Entry Date]-Data[PR entry date]))

    Hope this helps.