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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
nniphadk
Frequent Visitor

Pulling in a third column based on ID's

I have two tables and they join on the ID column.

 

Table 1 has ID, FIRST NAME, LAST NAME

Table 2 has ID, ADDRESS

 

How do I bring the address column into Table 1. I have to do this multiple times, I'm trying to create a master table within PowerBI.

1 ACCEPTED SOLUTION
Bipin-Lala
Super User
Super User

Hi @nniphadk,

 

There are multiple ways to bring columns from one table to another, if they have a joining key. The steps below would help you to implement a merge query in query editor to and join 2 tables and bring columns together.

 

  • Load the 2 tables in Power BI and open query editor

BipinLala_0-1709671320388.png  

BipinLala_1-1709671342032.png

  • Click on the source table (the one you want to use as master) and click on Merge Queries option in Home tab

BipinLala_2-1709671504360.png

  • This will open the merge query window as shown above. Select the key columns on both the table that would facilitate the join
  • Select the type of join (usually it's left join)
  • The join is complete. Now expand the table column added. Select the columns you want to bring in your master table.

BipinLala_3-1709671620885.png

  • Voila! Its done. You would have the column available in your master table. You can also join more than 2 tables using this method.

BipinLala_4-1709671671522.png

 

There are other solutions to this problem as well, such as creating relationships between tables and using DAX formulas to create calculated columns using RELATED function.

Or

You can also use LOOKUPVALUE DAX formula as well to bring values to the table.

 

Use whatever suits your requirements!

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



View solution in original post

2 REPLIES 2
ryan_mayu
Super User
Super User

pls provide some sample data and expected output





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Bipin-Lala
Super User
Super User

Hi @nniphadk,

 

There are multiple ways to bring columns from one table to another, if they have a joining key. The steps below would help you to implement a merge query in query editor to and join 2 tables and bring columns together.

 

  • Load the 2 tables in Power BI and open query editor

BipinLala_0-1709671320388.png  

BipinLala_1-1709671342032.png

  • Click on the source table (the one you want to use as master) and click on Merge Queries option in Home tab

BipinLala_2-1709671504360.png

  • This will open the merge query window as shown above. Select the key columns on both the table that would facilitate the join
  • Select the type of join (usually it's left join)
  • The join is complete. Now expand the table column added. Select the columns you want to bring in your master table.

BipinLala_3-1709671620885.png

  • Voila! Its done. You would have the column available in your master table. You can also join more than 2 tables using this method.

BipinLala_4-1709671671522.png

 

There are other solutions to this problem as well, such as creating relationships between tables and using DAX formulas to create calculated columns using RELATED function.

Or

You can also use LOOKUPVALUE DAX formula as well to bring values to the table.

 

Use whatever suits your requirements!

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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