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.
Trying to implement the following in power query, I tried adding a conditional column but don't know how to get it to work with a greater than operator.
case
when column1 >= 20
and column1 <= 100
and column2 = 'N' then 1
else 0
end as column
Solved! Go to Solution.
I got it to work: Add column -> custom column, use the following formula:
if [column1] >= 20 and [column1] <= 100 and [column2] = "N" then 1 else 0
if column1 is a text datatype then you need to surround the value with double quotes
I got it to work: Add column -> custom column, use the following formula:
if [column1] >= 20 and [column1] <= 100 and [column2] = "N" then 1 else 0
if column1 is a text datatype then you need to surround the value with double quotes
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.