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.
Hi All,
I've created a new column and im trying to add the below logic to it:
if "fruit" equals "Bananna" and "colour" does not equal "yellow" then "unripe"
I've tried both ways below but they dont work as it wont compare the string in both cases
IF([Fruit] = "Bananna" && NOT([Color]) = "Yellow", "Unripe",
IF([Fruit] = "Bananna" && ([Colour]) <> "Yellow", "Unripe",
All values are strings
Any help would be appreciated.
Solved! Go to Solution.
The start of your formula was already correct. The full formula would be;
IF([Fruit] = "Bananna" && NOT([Color]) IN { "Yellow", "Unripe" }),
Hi @PowerBINoob12 ,
This can be accomplished with NOT and IN
NOT([Color]) IN { "Yellow", "Unripe" }),
I need both parts of the if statement though - It also needs to check if fruit = bananna
The start of your formula was already correct. The full formula would be;
IF([Fruit] = "Bananna" && NOT([Color]) IN { "Yellow", "Unripe" }),
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 |
---|---|
114 | |
99 | |
81 | |
70 | |
61 |
User | Count |
---|---|
148 | |
116 | |
104 | |
89 | |
65 |