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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
LucasResendeR10
Frequent Visitor

Merge three differente excel databases with a different number of lines each

Hello everyone, I hope you're all doing well.

My question is, I have three excel worksheets, the first one has the name and code of the client and the type of product he has purchased, the second has the code of the client and personal informations, and the third has the code of the client and the manager it was assigned to. The problem is, the manager file has fewer lines, because more than one client can be assigned to the same manager, there are several repeted client codes because the same client can aquire differente products, and when I merge these databases in power query, I want to see the entire table to show all the clients with its respective manager, and code, even if it is a duplicate. But when I try to merge them, it is limited by the umber of line from the manager files, whitch has fewer lines. Can someone help me solve this?

1 ACCEPTED SOLUTION
mark_endicott
Super User
Super User

@LucasResendeR10 - You shouldn't need to merge them, just import them as separate tables and use Relationships to join them together. 

 

Here's some guidance on relationships: https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships

 

If this helps, please mark it as the solution. 

View solution in original post

2 REPLIES 2
v-yilong-msft
Community Support
Community Support

Hi @LucasResendeR10 ,

I create three tables as you mentioned.

vyilongmsft_0-1717393884496.png

Then I go to the Power Query. I use Merge Queries.

vyilongmsft_2-1717395267672.png

vyilongmsft_1-1717395200352.png

vyilongmsft_3-1717395450376.png

 

 

 

Best Regards

Yilong Zhou

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

mark_endicott
Super User
Super User

@LucasResendeR10 - You shouldn't need to merge them, just import them as separate tables and use Relationships to join them together. 

 

Here's some guidance on relationships: https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships

 

If this helps, please mark it as the solution. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.