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
Anonymous
Not applicable

how to create a relationship between two tables through two fields on each side?

I have to relate two tables in power two and for that I need to use two columns of each table in anteriore versions of power bi desktop I could do it easily just by holding down the Ctrl key and select the fields to be related, however I can not do more so, how can I do?

 

Untitled.png

4 REPLIES 4
skasper
Responsive Resident
Responsive Resident

The previous replies are correct. There is no way to create a relationship based on two columns in one table. To do so, you need to create a new column, combining the values of the other two and use this for establishing the relationship.

Best - Sascha
Please always mark accepted solutions. It helps others with similar questions or problems. Thank you.
Anonymous
Not applicable

I may have confused me but at some point I could somehow make this relationship work, will create a noca concatenated column to make this key then, thank you

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

I agree with smoupre. I haven't seen this option to create the relationship before either. Usually we need to create a new combination key in this scenario as smoupre mentioned above.Smiley Happy

 

Regards

Greg_Deckler
Community Champion
Community Champion

Are you sure that you are not thinking about the Merge dialog in Power Query, which allows you to do this? I'm not aware that ever existed for building relationships. Generally, I just use a CONCATENATE for my two fields in my tables and then relate them on those new fields.



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.

Top Solution Authors