Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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? Values from the highlighted column should be "Terminated".
Solved! Go to Solution.
@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/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
@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
@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,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 124 | |
| 107 | |
| 80 | |
| 69 | |
| 67 |