cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Helper I
Helper I

Re: Relationship of tables by more than one column

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.

Highlighted
Helper I
Helper I

Re: Relationship of tables by more than one column

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

Highlighted
Super User IV
Super User IV

Re: Relationship of tables by more than one column

@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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors