Forum Discussion

NickzNickz's avatar
NickzNickz
Helper IV
2 years ago
Solved

The Output based on multiple condition and Status column

Hi ...  I have table1 with Status , Date1 , Date2 , Date3 , Date4 and column Output. The output is based on the following conditions: 1) If Status is Planning and Date1 exists, Date2 is empty, D...
  • FreemanZ's avatar
    2 years ago

    hi NickzNickz ,

     

    try to add a calculated column like:

    Flag = 
    SWITCH(
        TRUE(),
        [date1]<>BLANK() && [date2]=BLANK(), "Planning",
        [date2]<>BLANK() && [date3]=BLANK(), "Advertisement",
        [date3]<>BLANK() && [date4]=BLANK(), "Selling",
        "Closing"
    )

     

    it worked like: