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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
anshpalash
Helper II
Helper II

Merging Rows with Common ID from different Tables

Hi all,

I have three tables of the form:

IDLocation
11NY
12DL
13IN
14TX
17NY

 

IDWeight
111
122

 

IDLot
172123

 

I am looking to achieve this:

IDLocationID MatchWeightLot
11NY111null
12DL122null
13INnullnullnull
14TXnullnullnull
17NY17null2123

 

I have created a relationship set up between the ID columns of the three tables. I want to add those rows from the second and third tables to the first table that have a matching UID. 

 

I tried using the related function for the second table. But since I can only have one active relationship, I am not able to do the same for the third table.

 

Can anyone please give me any direction on how I can add rows from different tables to the first one that have a matching ID? Thanks!

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @anshpalash 

 

Please download the sample file attached.

 

Output:

VahidDM_0-1650327223435.png

 

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @anshpalash ,

 

Whether the advice given by @VahidDM  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

VahidDM
Super User
Super User

Hi @anshpalash 

 

Please download the sample file attached.

 

Output:

VahidDM_0-1650327223435.png

 

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Ashish_Mathur
Super User
Super User

Hi,

Use the Merge Queries feature of the Query Editor.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors