Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Solved! Go to Solution.
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]
Best regards,
Yuliana Gu
After seven months and no activity on the performance issue that this approach of merge can cause.
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...
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?
Agree. It is isn't practical to do it with large tables. The database ends up scanning the whole table to find the artificial keys it needs.
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]
Best regards,
Yuliana Gu
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
52 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |