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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.