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.
I have to create a custom column "Lift/Escalator" which has the value "Lift" or "Escalator" based on another column, "lift_list".
That is If [lift_list] is not null, then Lift/Escalator should have "Lift", otherwise "Escalator"
I tried the following two formulae
1. = Table.AddColumn(#"Renamed Columns", "Lift/Escalator", each IF( ISNOTBLANK([lift_list]) , "Lift" , "Escalator" ))
2. = Table.AddColumn(#"Renamed Columns", "Lift/Escalator", each IF [lift_list] <> null , "Lift" , "Escalator" )
I got this error for both:
Can you please help me solving this. Thanks in advance!
Solved! Go to Solution.
Power Query is case sensitive, use the second version of your code but use if instead of IF
Power Query is case sensitive, use the second version of your code but use if instead of IF
Thanks. It worked
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 | |
100 | |
78 | |
75 | |
50 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |