Forum Discussion
Anonymous
8 years agoNot applicable
Join tables based on multiple columns
Hi, I have two tables . PowerBI does not let me join these tables as they do have unique values in one of the columns. In SQL I would join these tables based on two columns. Table 1 acco...
- 8 years ago
Hey,
in the query editor
- duplicate the columns that you want to use for the join
- mark the duplicated columns you want to use for the join, choose "Merge columns" from the context menu.
Here is a screenshot:
Repeat this for the 2nd table.
Now you are able to use this column to create a relationship between both tables
Don't forget to "hide" this column from report view.
Hopefully this answers your question
Regards
Tom
EduSurveys
4 years agoAdvocate II
I got this to work by selecting the first join columns, then holding control to select the second join columns under "Merge Queries."
DataBlau
3 years agoFrequent Visitor
I just tried this, and it's amazing. Never would of guessed you can do multiple joins by holding control. Wish this was also available for relationships.