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 All,
I have existing calculalted column code as below:
Solved! Go to Solution.
Hi @sdhn
Try this:
Graphs =
SWITCH (
TRUE (),
[Vulnerable (Yes/No/Not Assessed)] = "NOT ASSESSED", "NOT ASSESSED",
[Vulnerable (Yes/No/Not Assessed)] = "YES"
|| [Vulnerable (Yes/No/Not Assessed)] = "NO", "ASSESSED"
)
or
Graphs =
IF (
[Vulnerable (Yes/No/Not Assessed)] = "NOT ASSESSED",
"NOT ASSESSED",
"ASSESSED"
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Thanks
Hi @sdhn
Try this:
Graphs =
SWITCH (
TRUE (),
[Vulnerable (Yes/No/Not Assessed)] = "NOT ASSESSED", "NOT ASSESSED",
[Vulnerable (Yes/No/Not Assessed)] = "YES"
|| [Vulnerable (Yes/No/Not Assessed)] = "NO", "ASSESSED"
)
or
Graphs =
IF (
[Vulnerable (Yes/No/Not Assessed)] = "NOT ASSESSED",
"NOT ASSESSED",
"ASSESSED"
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
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 |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 8 | |
| 7 | |
| 7 |