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
Hello,
I need to create a conditional column based on values of two different columns, "Access Matches" and "Locked temporarily".
This is the code I have at the moment:
"
if [Access Matches] = "Yes" then "Yes"
else if [Access Matches] = "No" then "No"
else if [Access Matches] = null and [Locked temporarily] = null then "No - never logged in"
else if [Access Matches] = null and [Locked temporarily] = "FALSE" then "Yes"
else if [Access Matches] = null and [Locked temporarily] = "TRUE" then "No"
else "Check - error"
"
The code is working as expect for the first 3 lines, but for the 4th and 5th ones (highlighted), it is not retrieving the correct result, when on my data set I do have such combinations available. As a result, it is returning instead the "else" result, "Check - error".
I don't understand what is wrong with my code, can you please help identifying the reason? I tried multiple options but none seems to work.
Thank you
Solved! Go to Solution.
Hi @Malva ,
Try with true and false instead of "TRUE" and "FALSE".
Hi @Malva ,
Try with true and false instead of "TRUE" and "FALSE".
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 9 | |
| 8 | |
| 8 |