Forum Discussion
Table Merge creates duplicate records
- 9 years ago
The problem lay with the Data.
The LEFT JOIN functionality of PowerBI works perfectly.
I am having the same problem with my data. And no, I do not understand your answer to "expand as an aggregate," will you please clarify?
I know this is an old thread, but if someone else is still reading this thread and would like to offer help, I appreciate it!
Hi Anonymous,
I have created a quick sample that I hope helps explain my method. It may not work with your data, but it did fix the issue with mine!
I have two tables, I would like to merge 'Customer Type' with 'Customer Name'.
Customer Name Table
Customer Type Table
I would like to merge using the 'ID' column in both, to bring in the 'Cust Type' field from table 'Customer Type' into table 'Customer Name'.
Merge Options
Once successfully merged, I see the below:
I now have the option to expand that column of the merged table to bring in data from the 'Customer Type' table. But this is where I choose to Aggregate a field rather than expand. You may require a different aggregate measure other than median, dependant on data type:
Expand as Aggregate
The result from my data is below:
Result
Please also see sample.pbix file which I hope can help you with your issue.