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
Anonymous
Not applicable

Getting duplicates when merging a table

Hi all,

 

My teammate @JPY  and I are trying to merge two tables which are from different data sources. There are a couple of columns/variables that overlap. However, each of the report is a breakdown of the products being sold but because they are from different data sources, the exact variable which represents the line item does not coincide. For example, the unique value for each line item for report A would be WBS Element whereas the unique value for each line item for report B would be Count Distinct(Units) . Of course, at an aggregate level, they coincide in terms of sales order number and quote number, but at a line item level, they are unable to perfectly match each other and this creates duplicates when we merge these two tables in the PowerBI query editor. Our revenue also ends up getting double counted. 

 

Is there any way to resolve this?

 

Before the merge:

help 1102.PNG

 

After the merge:

Capture1102.PNG

 

 

We've been scratching our heads over this for a couple of weeks so any input will be greatly appreciated 🙂 

2 REPLIES 2
amitchandak
Super User
Super User

To me, it seems like the key is repeating. Can you share some sample data with the sample output?

Anonymous
Not applicable

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.