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 Power Query Champions,
I am struggling to replace blank and null values in my table using Power Query.
This is the code that I have used referring various blogs:
Custom1 = Table.ReplaceValue(#"Replaced Value18",each [Landing Page.1],each if [Landing Page.1]= null then "a" else if [Landing Page.1] = " " then "P" else [Landing Page.1],Replacer.ReplaceText,{"Landing Page.1"})
However nothing happens.
Is there anything that I am doing wrong here?
The text I am trying to replace is in Text format
Solved! Go to Solution.
Hi @Anonymous
Please have a try
Custom1 = Table.TransformColumns( #"Replaced Value18",{"Landing Page.1", each if _=null then "a" else if _=" " then "P" else _})
Hi @Anonymous
Please have a try
Custom1 = Table.TransformColumns( #"Replaced Value18",{"Landing Page.1", each if _=null then "a" else if _=" " then "P" else _})
Hi Vera,
It's working fine for the string however it's not working in case I wanat to pass the field name.
Hi Nikhil,
So what do you want to do with the column "Landing Page.1"? I was modifying your original code.
Thanks Vera.I have achieved what I wanted.
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 |
---|---|
100 | |
54 | |
21 | |
12 | |
11 |