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
Hi all,
I am not sure why my power Query M below kept getting error on
if Text.Contains([User status], "CANC") and Text.Contains([System status], "CLSD) then "Non-Compliant"
else if not (Text.Contains([User status], "CANC")) and Text.Contains([System status], "CLSD") then "Complaint"
else if Text.Contains([System status], "TECO") then "Compliant"
else "Non-Complaint"
See following screenshot.
Solved! Go to Solution.
Hi,
"" double qoutes are missing. "CLSD"
Please correct and try.
Thanks,
Surya teja
I think you are missing a closing quote.
Hi,
"" double qoutes are missing. "CLSD"
Please correct and try.
Thanks,
Surya teja
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 67 | |
| 45 | |
| 43 | |
| 36 | |
| 23 |
| User | Count |
|---|---|
| 191 | |
| 127 | |
| 106 | |
| 78 | |
| 53 |