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, I was hoping someone could point out what I am doing wrong.
I am using Power Query to check two columns for conditions and if they relsove to be true then update a third column. What I have so far is below
= Table.AddColumn(#"Replaced Value34", "Custom", each if [HDX_Domain] = "CPR" and [label] ="None" then "$CPR"
else if [HDX_Domain] = "CPR" and [label] is null then "$$$CPR"
else [label])
The first part works when it finds "None" in the [label] column, however I cannot seem to get Power Query to recognize the null in my column.
Thanks
Solved! Go to Solution.
Try this, I think you just need to change to the [label] = null
Table.AddColumn(#"Changed Type", "Custom", each if [HDX_Domain] = "CPR" and [label] = "None" then "$CPR" else if [HDX_Domain] = "CPR" and [label] = null then "$$$CPR" else [label])
Try this, I think you just need to change to the [label] = null
Table.AddColumn(#"Changed Type", "Custom", each if [HDX_Domain] = "CPR" and [label] = "None" then "$CPR" else if [HDX_Domain] = "CPR" and [label] = null then "$$$CPR" else [label])
Thank you. I will give this a try.
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 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |