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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
CarlSagan
Helper II
Helper II

Duplicate records with many to many relationships

Hi All,

I have a schema that has a many to many relationship where the join is causing the table to produce duplicate aggregation records. I've tried creating a "bridge" table, which is actually just the concatenation of two columns in each of the tables joining with each other.  I am joining on two columns; planid and account number and when these are the same it results in duplicate records

CarlSagan_0-1735581059089.png

Another example,

CarlSagan_1-1735582132850.png

I know this has to do with the data model but I've tried so many of the normal solutions and nothing seems to be working to achieve the goal of having the records correctly partition (group) based on planid AND account number.

2 REPLIES 2
pcoley
Resolver I
Resolver I

@CarlSagan 
can you share more about your model?

so we can see the tables and relationship, tring to find ambiguity or measure adjustemnt that can not be donne just with the name of the columns,.

Greg_Deckler
Community Champion
Community Champion

@CarlSagan In Power Query, select all of the columns in your table, right-click, and choose Remove Duplicates. You could also use DISTINCT against the whole table in DAX to remove any duplicate rows.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.