Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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" }),
User | Count |
---|---|
84 | |
80 | |
72 | |
71 | |
55 |
User | Count |
---|---|
108 | |
106 | |
93 | |
84 | |
66 |