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!
How to write IF 1 or 2 or (3 and 4)?
Which is different than IF 1 or 2 or 3 and 4?
Where 1,2, etc are criteria.
Thanks!
Solved! Go to Solution.
@UsePowerBI , like this
IF (condition 1 || condition 2 || (condition 3 && condition 4),"A","B")
@UsePowerBI , like this
IF (condition 1 || condition 2 || (condition 3 && condition 4),"A","B")
Hi @UsePowerBI ,
Use the SWITCH Statement.
CC =
SWITCH (
TRUE (),
Table[Column] = "1"
|| Table[Column] = 2
|| ( Table[column] = "3"
&& Table[column] = "4" ), "ABC"
)
Regards,
Harsh Nathani
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 |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |