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
Petazo
Helper I
Helper I

Relationship of tables by more than one column

Hello Dear:

I have a table in a data model, which in order to relate them must be joined through 2 fields. Currently what I do is create a new field in both tables (by dax) and then one by that created field.Captura.PNG

Is there a way to create the relationship without creating this additional field? that is, use more than 1 field to create the relationship.

Thank you so much for your help!

Best regards.

3 REPLIES 3
amitchandak
Super User
Super User

@Petazo , Please create two new tables for SKU and Centro and join them back with Table 1 and Table 2.

 

new SKU Table = distinct(union(all(Table1[SKU]),all(Table2[SKU])))

 

Or you can create a single table for both, in that case, you have to use a combined column to join.

 

If you want to join table1 and table2, just make sure it is not M-M relation. If it is Many to Many then use the above suggestions

Petazo
Helper I
Helper I

Dear, will there be any suggestions?

I think the model I have getting slower and slower given the different concatenations that I have to do splitting the tables.

Please help.

Thank you

Petazo
Helper I
Helper I

Hello

I still can't find out if there's a way to relate tables in the model by more than one field in the tables.

help me please.

Thank you.

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.