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
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"
)
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 |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |