Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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...
  • TomMartens's avatar
    TomMartens
    8 years ago

    Hey,

     

    in the query editor

    1. duplicate the columns that you want to use for the join
    2. 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