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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.