Forum Discussion

efilipe's avatar
efilipe
Helper IV
6 years ago
Solved

Join Table Man to Many

Hi guys,

 

I have a tire table like

 

Car table

 

Car nameTire WeightTire Width
Toyota10010
Honda20010
Mazda10040
A20080
C300120

 

Tire table

 

ProductTire WeightTire Width
A10010
B10010
C10040
D20080
E20080

 

The result should be

 

Car nameTire WeightTire WidthProdutct
Toyota10010A
Toyota10010B
Honda20010 
Mazda10040 C
A20080 D
A20080 E
C300120 

 

Basically is a left join it it has many to many relation ship. Bem label in the right has more products with the key Tire Weight and Tire Widht, it will duplicate the product in the left table.

 

Any ideas?

 

Thanks

 

  • Hi efilipe ,

     

    use Power Query - Merge Queries.

     

    If I answered your question, please mark my post as solution, this will also help others.

    Please give Kudos for support.

  • Hi efilipe 

     

    You may download my PBIX file from here.
    Hope this helps.

     

    If I answered your question, please mark my post as solution, this will also help others.

    Please give Kudos for support.

4 Replies

  • mwegener's avatar
    mwegener
    Most Valuable Professional

    Hi efilipe ,

     

    use Power Query - Merge Queries.

     

    If I answered your question, please mark my post as solution, this will also help others.

    Please give Kudos for support.

    • efilipe's avatar
      efilipe
      Helper IV

      Doesnt do that. It gets the first product. Doesnt duplicate.

      • mwegener's avatar
        mwegener
        Most Valuable Professional

        Hi efilipe 

         

        You may download my PBIX file from here.
        Hope this helps.

         

        If I answered your question, please mark my post as solution, this will also help others.

        Please give Kudos for support.