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.
Hi Experts,
I am trying to Merge 2 tables with a Many to One relationship.
This is the Many Table (338,427 rows):
While this is the one table (2468 rows [no duplicates for the ID]):
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?
Solved! Go to Solution.
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!
@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.
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!
@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.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
99 | |
80 | |
67 | |
63 |
User | Count |
---|---|
145 | |
111 | |
104 | |
84 | |
64 |