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
DeBIe
Post Partisan
Post Partisan

Creating relationship based on two columns possible?

Hey all,

 

I'm used to combining two or more columns into one when I have no unique identifier. I remember that I've seen the possibility in the CreateRelationship window in PowerBI to select a 2nd column for the relationship. Same as creating a join in SQL, I would have to add a 'and' to the join to add a 2nd matching column.

 

I've tryed to do this in PowerBI but I am not able to select a 2nd column. This feature was possible right? I'm quiete sure i've seen it.

In the sample below you see a red number, this is how it looked like when the possibility was there to select a second column.

 

DeBIe_0-1685700283087.png

 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You might be thinking of Power Query, where it is possible to do a join on multiple columns I think, but its never been possible to create relationships that way. You'd have to combine the columns into one and use that as the key for the relationship.

View solution in original post

2 REPLIES 2
DeBIe
Post Partisan
Post Partisan

Thanks @johnt75 , you are right. I was confused with the merge function within PowerQuery. 

johnt75
Super User
Super User

You might be thinking of Power Query, where it is possible to do a join on multiple columns I think, but its never been possible to create relationships that way. You'd have to combine the columns into one and use that as the key for the relationship.

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.