Forum Discussion
switch not working correctly
- 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,
Hi Ykankam ,
The BLANK() would kick in, if your column was null. In the screenshot, however, it appears that the value is an empty string.
What happens, if you try:
&& [Release_On_Time] = "" && [Complete_On Time] = ""
Does it work? 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
tackytechtom thanks for your input. Since SWICTH works in a sequencial order, i had to place the terminated condition first. Code now looks like as shown below