Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi there,
I need to form the correct version of this IF statement. Or, more likely, a different statement with the same outcome!
If Status = 3 then "Won"
If Status = 4 then "Lost"
If Status = BLANK then "Open"
Below is the code I'm trying and the Blank part does not seem to recognise it should display as "Open".
Any help appreciated,
Thanks
Status = (IF(opportunities[statuscode] = 3, "Won", IF(opportunities[statuscode] = 4, "Lost", IF(opportunities[statuscode] = BLANK(), "Open"))))
Solved! Go to Solution.
You could try
Status =
SWITCH (
opportunities[statuscode],
3, "Won",
4, "Lost",
BLANK (), "Open",
"defaut value if doesn't in any prior case"
)
You could try
Status =
SWITCH (
opportunities[statuscode],
3, "Won",
4, "Lost",
BLANK (), "Open",
"defaut value if doesn't in any prior case"
)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |