The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am seeking for advise on how can I replace the null value in power query to become 1 when I am merging from another table? I was trying below method when merging, but when null appear in table 1, merging does not find the row that has "null" in table 2. Appreciate some advice.
Solved! Go to Solution.
Hey you should be able to replace a specified value for a column using the "Replace values" function:
Right click on the desired column -> click Replace values -> Replace null by 1
Hey you should be able to replace a specified value for a column using the "Replace values" function:
Right click on the desired column -> click Replace values -> Replace null by 1
Before merging what you can do in both tables is to pick the columns which on which you are merging and replace its null values with any other dummy number such as 99999999999. And after merging you can replace the 99999999999 with nulls.
You can use "Replace values" Function in Power Query, and replace the nulls with 1.
In Power Query, select your column and navigate to the Transform tab on the Power Query Ribbon and locate the "Replace Values" option and replace your null values with 1.
Thank you.
If my answer helps you, please mark it as solution.