Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Lookup Multiple Rows and Return Yes or No

Hi all,   I have a table which looks like this: container_nr Status OOLU3874481 completed OOLU3874481 pending OOLU3874481 rejected OOLU3333333 pending   I am looking for a...
  • Ashish_Mathur's avatar
    7 years ago

    Hi,

     

    Try this calculated column formula

     

    =IF(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[container_nr]=EARLIER(Data[container_nr])&&Data[Status]="Completed"))>=1,"Yes","No")

     

    Hope this helps.

  • Greg_Deckler's avatar
    Greg_Deckler
    7 years ago

    Are there multiple tables involved here? The example I put together was for everything in a single table and it seemed like it was returning the correct status.

  • Anonymous's avatar
    Anonymous
    7 years ago

    good day  Greg,

     

    here is what i did: I took a beer, had a good rest, tried it again and found out it is woking fine.

    Thank you so much!

     

    john