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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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 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.