Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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".
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |