Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have two tables I'd like to relate to each other based on product number. The difficulty is that many products have two different product numbers, divided into two seperate columns in the second table. The relevant columns look something like this:
Table1: includes ticket information
| Ticket_ID | Product |
| 1 | 5001 |
| 2 | 8463 |
| 3 | 484436 |
| 4 | 800006 |
| 5 | 9401 |
Table2: includes product information, including current product number and old product number where it exists
| Product | Old Product | Description |
| 5001 | 800006 | Apple |
| 8463 | 486624 | Banana |
| 5648 | 484436 | Orange |
| 9401 | null | Mango |
| 4810 | 110011 | Lemon |
I'd like to either combine these tables in power query or relate them in the model so I can display the product properties along with the Ticket data regardless of whether the ticket comes in with the new product number or the old one. How would I best do this?
Desired result:
| Ticket_ID | Product | Description |
| 1 | 5001 | Apple |
| 2 | 8463 | Banana |
| 3 | 484436 | Orange |
| 4 | 800006 | Apple |
| 5 | 9401 | Mango |
Solved! Go to Solution.
Load Tables into Power Query:
Duplicate and Unpivot Table2:
Remove Nulls in Product Number:
Merge Tables:
Expand Merged Table:
Finalize:
The resulting table should look like this:
Ticket_ID Product Description
| 1 | 5001 | Apple |
| 2 | 8463 | Banana |
| 3 | 484436 | Orange |
| 4 | 800006 | Apple |
| 5 | 9401 | Mango |
hi @Hircon
Load Tables into Power Query:
Duplicate and Unpivot Table2:
Remove Nulls in Product Number:
Merge Tables:
Expand Merged Table:
Finalize:
The resulting table should look like this:
Ticket_ID Product Description
| 1 | 5001 | Apple |
| 2 | 8463 | Banana |
| 3 | 484436 | Orange |
| 4 | 800006 | Apple |
| 5 | 9401 | Mango |
The unpivot was exactly the step I was missing. Thank you!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!