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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.