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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jaryszek
Post Patron
Post Patron

How to create bridge table with composite keys

Hi,

 

i have found on web solution with bridge with 1 column. 

But what if my table should have more than 1 column as composite key? 
How to do this?

Best,
Jacek

4 REPLIES 4
v-luwang-msft
Community Support
Community Support

Hi @jaryszek ,

Are you trying to create a relationship between two tables with multiple columns? Is the relationship created as and or? For example, if the key column 1 in table 1 is the same as the key column 1 in table 2, but the key column 2 in table 1 is not the same as the key column 2 in table 2, how would that be displayed?

 

And refer:

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships 

 

 

Best Regards

Lucien

Hi Lucien,

 

please see screens attached from Access to reproduce my issue. I have relationship created based on 3 fields, not 1. 

 

Best,
Jacek

jaryszek
Post Patron
Post Patron

Ok,

in Access relationships would like like:

jaryszek_0-1655452986941.png

Form:

jaryszek_1-1655453032664.png

 

and in power BI i have something like here:

jaryszek_2-1655453229762.png

 

Should i use Bridge table in this case or just create relationships many to many instead? 

What is a good practice in this case?

 

Best,
Jacek

 

 

 

jaryszek
Post Patron
Post Patron

Anyone?

Jacek

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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