Forum Discussion

Ykankam's avatar
Ykankam
Helper I
2 years ago
Solved

switch not working correctly

I am using SWITCH function to get 4 different values. The first 3 works as expect, but the last condition does not return the expected value which is "Terminated". What could I be doing wrong?  Value...
  • rsbin's avatar
    2 years ago

    Ykankam ,

    The SWITCH function works in sequence.  If it doesn't find Condition 1, it moves to the next.

    My assumption here, without seeing all of the columns in your dataset, is that all of the conditions for "In Progress" are being met, so the SWITCH never reaches Condition 4 for "Terminated".

    Try moving the "Terminated" Condition to be the 1st or 2nd and see if that resolves your issue.

    Regards,