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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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