Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Duplicate Values when Merging - Dynamic Index needed to filter out duplicates

Hello! 

I'm having an issue where several rows of my data are duplicating causing many different measures ($, Price, etc) to be overstated.

 

I'm merging two tables by a singular column (UPC) - I know why duplicates exist due to one of the tables having several of the duplicate values within it. As the UPC's are sold at several different markets. 

 

What I think I need to do is create a unique index column based off of several different columns (Market, UPC, Timing) - this column would need to be dynamic as the data is always changing. I think once this column is done I could remove duplicates?

 

I'm not thtat well versed in this but any help provided would be incredbily beneifical!

5 REPLIES 5
Jimmy801
Community Champion
Community Champion

Hello

In the join- function you could surround the table with the duplicated values with Table.Distinct to ensure the values are not doubled.

Hope this helps

Jimmy
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can Merge Queries on Multiple Columns, you just need to select them in the right order

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

Hey @Mariusz  thanks for the follow up. Unfortunately one of the tables I'm merging only has 3 columns. (As I'm only adding essential segmentation to another table). So one of the tables only contains 1 like column (UPC).

Hi @Anonymous 

Could you show some example so we can make a test?

It is appreciated to upload some screenshots or paste some data.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous 

 

You can use Group By 

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors