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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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,
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 53 | |
| 40 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 97 | |
| 81 | |
| 35 | |
| 29 | |
| 25 |