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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to create relationship between these tables

Hi Everyone,

 

I have two tables with only the supplier names field common in both, however I am trying to join them so that I can show the Spend Value in the Product table but I couldn't. I tried to use the RELATED or RELATEDTABLE functions but It didnt wont as both table could not connect in the model (here's the message I receive when I try: "you can't create a relationship between these two colums because one of the columns must have uniques values").

 

Your assistance will be highly appreciated!

 

Supplier Table:

Supplier NameSpend
AG Enterprises$4500
 Lenix$6000

 

Product Table:

Product IDSupplier NameQuantityPurchase Date
1AG Enterprises4421-01-2020
2Lenix6722-01-2020
3AG Enterprises3327-01-2020
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

you can try to create a bridge calcualted table

bridge Table = DISTINCT(Supplier Table[Supplier Name])

then relate it to both of your tables


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Anonymous 

you can try to create a bridge calcualted table

bridge Table = DISTINCT(Supplier Table[Supplier Name])

then relate it to both of your tables


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

It worked perfectly! Thanks.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors