Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
MohsinBipu
Helper I
Helper I

Extract data from a two-dimensional data in Power Query

I have one table "Code table". Here Product code (Mobile, TV, Monitor, etc) is mentioned based on different stores (South Store, North Store, Ease, and West store). 

 

I have another table "PO Table". Here one monitor is ordered from South store. But this product will be delivered from East store. 

 

Both tables are in Power Query. In "PO Table", I want to get the item code of the delivery store based on the Store location. Please find the Picture for a better understanding.

 

For the first example, Conditional cells are marked with a red circle. 

 

This would be great if you can give the solution with normal Power query steps rather than M language. 😀

 

MohsinBipu_0-1684474452500.png

 

 

1 ACCEPTED SOLUTION
MohsinBipu
Helper I
Helper I

yes, I solved it. Main Part needs to pivot other columns of "Code table".

MohsinBipu_0-1684489423434.png

 

 

Then Need to merge and compare with "PO Table". With the below steps, Solved it. Shared with all if it helps other. 

MohsinBipu_1-1684489218138.png

 

View solution in original post

1 REPLY 1
MohsinBipu
Helper I
Helper I

yes, I solved it. Main Part needs to pivot other columns of "Code table".

MohsinBipu_0-1684489423434.png

 

 

Then Need to merge and compare with "PO Table". With the below steps, Solved it. Shared with all if it helps other. 

MohsinBipu_1-1684489218138.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors