Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi guys,
I have a tire table like
Car table
Car name | Tire Weight | Tire Width |
Toyota | 100 | 10 |
Honda | 200 | 10 |
Mazda | 100 | 40 |
A | 200 | 80 |
C | 300 | 120 |
Tire table
Product | Tire Weight | Tire Width |
A | 100 | 10 |
B | 100 | 10 |
C | 100 | 40 |
D | 200 | 80 |
E | 200 | 80 |
The result should be
Car name | Tire Weight | Tire Width | Produtct |
Toyota | 100 | 10 | A |
Toyota | 100 | 10 | B |
Honda | 200 | 10 | |
Mazda | 100 | 40 | C |
A | 200 | 80 | D |
A | 200 | 80 | E |
C | 300 | 120 |
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
Solved! Go to Solution.
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 ,
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.
Doesnt do that. It gets the first product. Doesnt duplicate.
Hi @efilipe ,
The answer of mwegener is correct. It works perfectly with M language in Query Editor. If you want to implement with DAX, you could reference this thread:
https://community.powerbi.com/t5/Desktop/left-outer-join-using-dax-Multiple-to-Multiple/td-p/218906
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |