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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Revati25
New Member

Many- Many Relationship

I am trying to create a relationship with 2 tables having multiple id, it is giving many to many how to avoid this and on applying joins the calculations are getting altered, what is the possible reason for this? 
Any solution on how to tackle this?

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Revati25 

Identify Unique Keys: Ensure that each table has a unique key that can be used to create a one-to-many relationship. If the tables do not have unique keys, you may need to create a composite key by combining multiple columns to form a unique identifier.

Bridge Table: Create a bridge table (also known as a junction table) that contains unique combinations of the IDs from both tables. This bridge table can then be used to create one-to-many relationships with the original tables.

Data Modeling: Properly model your data to avoid many-to-many relationships. This might involve restructuring your tables or creating additional tables to ensure that relationships are one-to-many or many-to-one.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@Revati25 

Identify Unique Keys: Ensure that each table has a unique key that can be used to create a one-to-many relationship. If the tables do not have unique keys, you may need to create a composite key by combining multiple columns to form a unique identifier.

Bridge Table: Create a bridge table (also known as a junction table) that contains unique combinations of the IDs from both tables. This bridge table can then be used to create one-to-many relationships with the original tables.

Data Modeling: Properly model your data to avoid many-to-many relationships. This might involve restructuring your tables or creating additional tables to ensure that relationships are one-to-many or many-to-one.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Deku
Super User
Super User

When you say multiple IDs. Do you mean multiple duplicate IDs on both sides of the join. If yes you need a many-many.

 

Please provide more informations and examples of you want more complete feedback. There is not enough information to comment further


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.