Forum Discussion
raeldor
8 years agoAdvocate I
Create Relationship on Compound Key
So, can someone tell me why I can't join tables on more than one key? This seems like one of the most basic query functions yet it can't be done. I see people saying 'create a calculated column', b...
v-xjiin-msft
8 years agoSolution Sage
In current Power BI, there exists a limitation for relationship that you can’t create relationship based on more than one column.
To workaround this limitation, we can concatenate these related columns into one calculated column, then create relationship based on this concatenate column. Please refer:
Reference: Relationship in Power BI with Multiple Columns
Thanks,
Xi Jin.
- raeldor8 years agoAdvocate I
So, I know HOW to do it. The question is really... why do I need to?
- v-xjiin-msft8 years agoSolution Sage
This is the limitation for relationship in current Power BI and it is by design. :smileysad:
Thanks,
Xi Jin.- raeldor8 years agoAdvocate I
A little odd considering every relational database I've ever seen allows multi-field joins. Seems a little unfair making users jump through hoops to do something so common. :(