Folks.
I am building a Power Query model, and need help with coding a lookup with multiple criteria, similar to INDEX MATCH. The Index Mathc function is far too slow in Excel because I have large amounts of data. I suspect doing it in PowerQuery will be considerable faster.
I have two tables called NPDFmTops and OHP_PLotData
I want to return a value in the OHP_PlotData table, that comes from the NPDFmTops, based on 4 different criteria The INDEX/MATCH combo I wish to replicate in PowerQuery is
Formula:
Please Login or Register to view this content.
In otherwords
return IsuName
When Wellbore=wlbName AND
IsuLevel = "FORMATION" AND
MD RKB > IsuTopDepth AND
MD RKB <= IsuBottomDepth
I have added a small example file with 2 TABLES "OHP_PlotData" and "NPDLithostrat" both added to the Data Model as Links Only... I wish the above INDEX/MATCH combo to be built into PowerQuery adding data to the Column "FORMATION" in the "OHP_PLotData" Table
Can anyone help in writing the correct PowerQuery Code to replicate this, I'm struggling considerably
Thanks
Bookmarks