Power Query 3 way lookup

gazmoz17

Board Regular
Joined
Sep 18, 2020
Messages
158
Office Version
  1. 365
Platform
  1. Windows
I have a query called "PL" which are customers indiv prices.

Another Query "Invoice (2)" which is a control for low margin invoice items. I wish to highlight from Invoice (2)" where margin is low for invoice item line because customer has their own discounted price for relevant prod setup in "PL".

I have achieved this in the past with Index match but would like to learn how to do it in power query.

I've followed a youtuve video but think thats for a 2 way lookup and that this is a 3 way lookup.


Record from "PL" to lookup the yellow to extract the blue "Price List".

1678121034991.png


Invoice (2) query contains both the yellow columns above. Following the video I added a custom column and did the following

= Table.AddColumn(#"Renamed Columns4", "ExactMatchPriceLookup", each Record.Field(PL{[Customer=[Customer]]},[SKU]))

Plus variants of columns highlighted above...but I know its not going to work as its not referencing my 3 highlighted columns.


Any help much appreciated.

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,216,085
Messages
6,128,733
Members
449,465
Latest member
TAKLAM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top