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
marbinv3
New Member

Table Merge of Many to one results to multiplied rows

Hi Experts,

 

I am trying to Merge 2 tables with a Many to One relationship.

This is the Many Table (338,427 rows):

marbinv3_0-1638520829820.png

While this is the one table (2468 rows [no duplicates for the ID]): 

marbinv3_1-1638520902439.png

When merging the tables using Left Outer, it give a complete match based on PowerBI estimates but rows are multiplied to 5.4 million rows. I am using the "Many" table as main table. Can anyone please help me?

1 ACCEPTED SOLUTION
marbinv3
New Member

This has been resolved. 

The first table was a result of an SQL query which was also a joint table. The merge with the secondary table was connecting to the mediating table resulting to multiplication of rows. Thanks!

 

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@marbinv3 that makes sense. Glad you figured it out. It is very hard to reply to such posts without looking at the data. Good luck!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

marbinv3
New Member

This has been resolved. 

The first table was a result of an SQL query which was also a joint table. The merge with the secondary table was connecting to the mediating table resulting to multiplication of rows. Thanks!

 

parry2k
Super User
Super User

@marbinv3 if I understood your question correctly, you are doing merge in power query and if you are doing merge on correct columns I don't expect the number of rows to increase. Surely missing something here. Can you share pbix file with sample data, remove sensitive information before sharing. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

lbendlin
Super User
Super User

Help with what?  You are asking for a cartesian product (left join, no less) so that's what you are getting. 

 

If you want a smaller result then use less data, or aggregate / filter earlier.

 

Or - don't do the merge in Power Query, instead load both tables and connect them in the Vertipaq data model

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.