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
cal
New Member

Cannot create multiples column relationship between two tables

Hi,

 

I'm trying to connect two tables with 2 columns as a key

but it is not possible to select more then one column for a relationship.

 

*I dont want to create a new column that contains this 2 columns value in one cell

 

thanks,

1 ACCEPTED SOLUTION
SamLester
Employee
Employee

Hi, composite keys are not supported in Power BI. As you suspected, you would need to create a new column in each data source that contains the combined values, then use this as the relationship column.

 

Here are previous threads on the topic:

http://community.powerbi.com/t5/Desktop/Create-relationship-between-with-two-columns/m-p/10786/highl...

http://community.powerbi.com/t5/Desktop/Is-it-possible-to-use-multiple-field-joins-in-a-table/td-p/2...

 

And here is the suggestion on the ideas site if you'd like to comment/vote:

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9196284-use-composite-joins-in-ma...

 

Thanks,
Sam Lester (MSFT)

View solution in original post

1 REPLY 1
SamLester
Employee
Employee

Hi, composite keys are not supported in Power BI. As you suspected, you would need to create a new column in each data source that contains the combined values, then use this as the relationship column.

 

Here are previous threads on the topic:

http://community.powerbi.com/t5/Desktop/Create-relationship-between-with-two-columns/m-p/10786/highl...

http://community.powerbi.com/t5/Desktop/Is-it-possible-to-use-multiple-field-joins-in-a-table/td-p/2...

 

And here is the suggestion on the ideas site if you'd like to comment/vote:

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9196284-use-composite-joins-in-ma...

 

Thanks,
Sam Lester (MSFT)

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.