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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sanguine35711
New Member

How to merge two tables with multiple instances of a key?

Is this possible?  I have two excel documents, file 1: "hostnames with component type" and "hostnames with serial numbers" with a common column title "Machine Name (Required)" which I believe I can use as the key between the two tables.  But in one of the tables I have multiple instances of the Machine Name value because these represent machines with mulitple IP Addresses.  

 

The end result would be to have a third table (or excel document) with the combined information from both excel documents in which the data the corresponsding to a specific hostname (all the row data) is inserted from "hostnames with serial numbers" into "hostnames with componenty type".

 

This is the excel table named ""hostnames with componenty type"

sanguine35711_1-1663147575002.png

 

 

This is the excel table named "hostnames with serial numbers"

sanguine35711_0-1663147531530.png

Please help!

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @sanguine35711 ,

You can add an Index to the two tables respectively.

vyangliumsft_0-1663222322700.png

Through Merge, use the [Index] of the two tables as a common column for Left outer.

vyangliumsft_1-1663222322702.png

 

vyangliumsft_2-1663222322704.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @sanguine35711 ,

You can add an Index to the two tables respectively.

vyangliumsft_0-1663222322700.png

Through Merge, use the [Index] of the two tables as a common column for Left outer.

vyangliumsft_1-1663222322702.png

 

vyangliumsft_2-1663222322704.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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