Forum Discussion

AllanBerces's avatar
AllanBerces
Post Prodigy
1 year ago
Solved

Switch

Hi good day can anyone help me on my new column base from my table below, basically if the comments is Cancelled and Tobe- Cancelled the actual colunm should reflect Non-Workable. OUTPUT ...
  • Houston-ho's avatar
    Houston-ho
    1 year ago

    Actual = SWITCH(Test[Comment], "Cancelled", "Non-Workable", "Tobe-Cancelled", "Non-Workable", Test[Status])

     

  • PhilipTreacy's avatar
    1 year ago

    AllanBerces 

     

    Just add [Status] like this

     

     

    Actual = 
    
    SWITCH(
    
    TRUE(),
    
    [Comments] = "Cancelled" || [Comments] = "Tobe- Cancelled" , "Non-Workable",
    
    [Status]
    
    )

     

     

    regards

     

    Phil