Forum Discussion

pjpreddy2's avatar
pjpreddy2
Frequent Visitor
8 years ago
Solved

relationships across multiple columns

Gang, I've got two tables in Power BI that I need to tie together, the first table has an ID Number (Table 1) that matches an ID Number in another table (Table 2), the issue is the originally Table2...
  • v-yulgu-msft's avatar
    8 years ago

    Hi pjpreddy2,

     

    You can first unpivot Table 2 in Query Editor mode.

     

    Then, you can refer to the Sell Date in Table 1 via LOOKUPVALUE function.

    Sell Date = LOOKUPVALUE('Table 2'[Sell Date],'Table 2'[ID Numb],'Table 1'[ID Numb])

     

    Best regards,

    Yuliana Gu