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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Solved! Go to Solution.
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.
Proud to be a Super User! |
|
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.
Proud to be a 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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!