Forum Discussion
Table Merge creates duplicate records
- 9 years ago
The problem lay with the Data.
The LEFT JOIN functionality of PowerBI works perfectly.
Sadly, I still have not been able to fix this problem with the "Merge" feature. I have resorted to using "Append" instead - and in some cases it works and in others it doesn't. It is a very frustrating situation.
I got the same problem.
Source table is an daily order table with duplicated rows, i.e. SKU ID and merged with another matching table with unique rows of SKU ID, and created randomly duplicated rows.
Whatever I tried to remove duplicates or aggregated by median still not get the correct final data.
My order data could get up to 20K rows and it's easily get wrong while I merged the tables.
That is so annoying.
Hope POWER BI experts can really solve this problem.
Thanks.
- Anonymous2 years agoNot applicable
I know this post is old, but this may help others in the future:
Create an Index Column before the merging.
This will mark each row with a unique sequential number.
When the duplicate happens, it will duplicate the number as well.
After the merging, select the Index Column and remove duplicates.
Remove Index column.
- JamieW1352 years agoFrequent Visitor
Thank you, this is the only thing that worked for me! The index also makes it easy to spot where data has been deleted eronously. I plan on added one to all of my datasets from now on.
- MS19868 years agoRegular Visitor
Hi, is there anyone who can help with this? I have the same issue and there seems to be no solution for it apart from Table.First, but this function slows down the query...