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
OneWithQuestion
Post Prodigy
Post Prodigy

Direct Query- multiple column relationships?

Our vendor system that we are using as a data source has several tables that use a combination primary key and for relationships to other tables you have to join on 3 or 4 columns (I hate it, I do not know WHY they do it...but it is the way it is).

 

Is there anyway to support that in Power BI Desktop using Direct Query?

 

In a Tabular data model I can make a calculated column to achieve this, however... it does not seem possible to do multiple column relationships in the modeling option for Direct Query Mode?

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @OneWithQuestion,

 

In Direct Query, you are still able to create a calculated column to combine multiple columns to generate the primary Key.

Col4 = Test5[Col1]&" "&Test5[Col2]

ColC = Test6[ColA]&" "&Test6[ColB]

 

3.PNG1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
S19K15
New Member

After seven months and no activity on the performance issue that this approach of merge can cause.

koureass
Regular Visitor

UPDATE 07/07/2023 in behalf of my previous post

I have tested this on tables with million of rows using Direct Query, very very bad idea...

rshukramani
New Member

Could we address @koureass concern on query performance?

koureass
Regular Visitor

This is true and can be done, although is not very performant as the query is no longer hitting the actual column predicates for the join, right?

v-yulgu-msft
Employee
Employee

Hi @OneWithQuestion,

 

In Direct Query, you are still able to create a calculated column to combine multiple columns to generate the primary Key.

Col4 = Test5[Col1]&" "&Test5[Col2]

ColC = Test6[ColA]&" "&Test6[ColB]

 

3.PNG1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.