Skip to main content

Power BI

Needs Votes

Composite Key support in Power BI

Vote (151) Share
Srinivasan Turuvekere's profile image

Srinivasan Turuvekere on 22 Oct 2015 21:59:36

Provide support for composite keys natively as a modeling feature. This would be useful to create relationships between tables that join on multiple columns without having to create a surrogate key by concatenating fields

Comments (12)
Srinivasan Turuvekere's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 06 Jul 2020 00:13:52

RE: Composite Key support in Power BI

In a DirectQuery model the concatenation strategy slows down performance tremendously because you're joining on string instead of integers. Please add this. thank you.

Srinivasan Turuvekere's profile image Profile Picture

1f6da669 28f5-494a-a86e-d7562155b54c on 05 Jul 2020 23:47:56

RE: Composite Key support in Power BI

Yes, Support it. It must be present in Manage Relationship tab.

Srinivasan Turuvekere's profile image Profile Picture

51056017 2264-4528-b06a-20099480fc06 on 05 Jul 2020 23:19:25

RE: Composite Key support in Power BI

Its lame MS doesnot add such useful features in the tool. Not wonder why Tableau is still everyones favourite bi tool

Srinivasan Turuvekere's profile image Profile Picture

7c4f8e9a 837a-4b7b-a263-73d71932b66a on 05 Jul 2020 22:41:05

RE: Composite Key support in Power BI

Very valuable! Also vote on similar ideas: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9196284-use-composite-joins-in-manage-relationships-setup
and
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/10849149-add-the-ability-for-multiple-relationships-between

Srinivasan Turuvekere's profile image Profile Picture

e18056d8 a20a-4d16-b49c-aec37d9aeb68 on 05 Jul 2020 22:35:00

RE: Composite Key support in Power BI

yes, this is very important, specialy in directquery mode. I can understand how the in memory mode works, but in directquery, having more than 1 column in a join is a must have.
currently this limitation breaks the usage of my indexes and cause performance issues.

Srinivasan Turuvekere's profile image Profile Picture

4e80ec4b af31-e811-a95c-000d3a1bec70 on 05 Jul 2020 22:32:56

RE: Composite Key support in Power BI

This would be very handy. I'd like to avoid creating unnecessary concatenated fields and reduce the model size.

Srinivasan Turuvekere's profile image Profile Picture

Mike Burba on 05 Jul 2020 22:30:36

RE: Composite Key support in Power BI

At a client that just asked for this.

Srinivasan Turuvekere's profile image Profile Picture

a78551b4 7a67-4083-942f-6d346756d6a5 on 05 Jul 2020 22:26:29

RE: Composite Key support in Power BI

I'll say. In the meantime kludge city, workaround SELECT CAST(PrimaryKeyComponent1, nvarchar(32)) + CAST(PrimaryKeyComponent2, nvarchar(32)) AS KludgeKey... swell.

Srinivasan Turuvekere's profile image Profile Picture

3d44503a 74a3-4401-85d2-89855514211c on 05 Jul 2020 22:22:58

RE: Composite Key support in Power BI

Yes, Support it. It must be present in Manage Relationship tab.

Srinivasan Turuvekere's profile image Profile Picture

c9bd0d80 845b-47ca-910d-b30dcc9e795f on 05 Jul 2020 22:18:18

RE: Composite Key support in Power BI

errr... Yeah.