Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ellysoo
Regular Visitor

Replace all null to 1 when merging value from 2 tables

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. 

 

ellysoo_0-1677064154885.png

 

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

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

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

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

Anonymous
Not applicable

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.

VishalJhaveri_0-1677065283722.png


Thank you.
If my answer helps you, please mark it as solution.



Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.