VLOOKUP in Power Query Using List Functions

Ғылым және технология

Using List functions in Power Query to do Exact Lookup and Approximate Match Lookup is faster and easier to create than using table merges.
Download the Excel file that includes the data and queries in this video: www.myonlinetraininghub.com/v...
0:15 Exact Match VLOOKUP
1:21 Using List.PositionOf to lookup value
2:32 Looking up the category for the corresponding value
3:15 Combining M code to reduce query steps
4:33 Approximate Match VLOOKUP
5:34 Using List.Select to lookup all matching values
7:55 Checking the content of lists created with List.Select
8:37 Using List.Count to lookup the approximate match value
View my comprehensive courses: www.myonlinetraininghub.com/
Connect with me on LinkedIn: / myndatreacy

Пікірлер: 216

  • @mariaalcala5159
    @mariaalcala51592 жыл бұрын

    Great video! exactly what I was looking for! Better than merging the columns! Thank you very much!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    You're welcome Maria.

  • @CeliaAlvesSolveExcel
    @CeliaAlvesSolveExcel2 жыл бұрын

    This is awesome! Saved in my tutorials list to use very soon. Thank you Mynda and Phil!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Great to hear, Celia!

  • @wayneedmondson1065
    @wayneedmondson10652 жыл бұрын

    Hi Mynda and Phil. Thanks for this awesome video showing how to achieve a VLOOKUP using the power of list functions! Nice to know another way to do this vs. merging queries. Thanks for sharing :)) Thumbs up!!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thanks Wayne, glad it was helpful.

  • @genshinken09
    @genshinken092 жыл бұрын

    Thanks for this awesome video. By using this answer, I have learned also that Power Query from Excel is case sensitive when using column names. Thanks a lot for this!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad it was helpful!

  • @houstonsam6163
    @houstonsam6163 Жыл бұрын

    Many thanks for this excellent tutorial. The final formulation you show at 4:02 is very closely analogous to the venerable INDEX MATCH formulation for looking up across tables/ranges with a worksheet function.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Glad you liked it!

  • @EricHartwigConsulting
    @EricHartwigConsulting2 жыл бұрын

    Wow! Jaw dropping awesome! Thank you so much for creating/posting this video.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    You're welcome Eric. Glad you enjoyed it.

  • @puertadelaestrella
    @puertadelaestrella2 жыл бұрын

    I used this on a project at work the very next day! This is great

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Great to hear 😊

  • @marktheirl1842
    @marktheirl18422 жыл бұрын

    Wow!!! That is a lot easier than doing a merge. Thank You!!!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    :) Glad it was helpful Mark

  • @kebincui
    @kebincui2 жыл бұрын

    Thanks you both Mynda and Phil👍

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thanks Kebin

  • @suki9860
    @suki98602 жыл бұрын

    Elegant! Thanks, Phil and Mynda!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thank you!

  • @vijayarjunwadkar
    @vijayarjunwadkar2 жыл бұрын

    Nice video and a great tip yet again! thank you Mynda for sharing this! 😊👍

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Our pleasure 😊

  • @nalauser
    @nalauser11 күн бұрын

    So easy to follow along! Great vid. Subscribed!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    11 күн бұрын

    Thanks and welcome!

  • @ExcelWithChris
    @ExcelWithChris2 жыл бұрын

    Another great one! Thanks from South Africa.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Cheers Chris.

  • @darrylmorgan
    @darrylmorgan2 жыл бұрын

    Hi Mynda!Really Great And Helpful Tutorial From Phil..Thank You Both :)

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thanks Darryl. Glad you liked it.

  • @amfpvt
    @amfpvt Жыл бұрын

    Thank you, thank you, thank you ... indexes fix nightmares. Dates are a massive pain across tables in Power Query. The might be a way using Min() > than x but I could not work out how to do it after hours and hours. Indexing the reference table +1 to get the next date worked fine. Awesome. Clear as clear.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Glad it was helpful 😊

  • @Ado-7
    @Ado-72 жыл бұрын

    This is valuable knowledge. Thank you for sharing.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    My pleasure Adonis.

  • @ChrisPadillaAZ
    @ChrisPadillaAZАй бұрын

    Mynda, You're quite amazing. Thanks for gathering this information for us.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Ай бұрын

    You are so welcome! 🙏

  • @jazzista1967
    @jazzista19672 жыл бұрын

    Phil... great trick... List.PositionOf very elegant function to bring the ordinal position whitout adding an index number column , I will memorize this list function.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad it was helpful Jazzista

  • @pavol.cernak
    @pavol.cernak2 жыл бұрын

    A really cool solution! Thank you.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    No worries Pavol, glad you liked it.

  • @demris15
    @demris152 жыл бұрын

    this is great... i use merges all the time! thank you (my computer thanks you too!!)

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad you found it helpful 😊

  • @drewbbc7074
    @drewbbc70742 жыл бұрын

    Good use of the 'let' statement to solve a range lookup problem

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Cheers, Drew!

  • @walterstevens8676
    @walterstevens86764 ай бұрын

    This was worth watching, thanks. It might have been worth including doing an error trap if the List.PositionOf returns a -1, before doing a retrieval based on the index value

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    4 ай бұрын

    Nice idea. Thanks for sharing, Walter 🙏

  • @manishchauhan5625
    @manishchauhan56252 жыл бұрын

    Thats really very helpful, i implemented this technique on one of the project i am working in my company.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad it was helpful!

  • @momzwrite
    @momzwrite2 жыл бұрын

    This is EXACTLY what i was searching for. Every other answer I could find involved merging tables which is not the same thing

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad I could help, Tony 😊

  • @graemegourlay2850
    @graemegourlay28503 ай бұрын

    Brilliant, exactly what I was looking for.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    3 ай бұрын

    Great to hear!

  • @jozefl204
    @jozefl204 Жыл бұрын

    Hi Mynda and Phil. Thanks for this awesome video. Is it possible to "upgrade" it to two-way lookup ? E.g. if the same Sales Persons are in two different Cities and for Cities are different Rates

  • @taahatube1
    @taahatube12 жыл бұрын

    Yay just what I wanted thank u!🤩

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    No worries Taaha.

  • @vijaykrishnan4151
    @vijaykrishnan41512 жыл бұрын

    Super Phil and Mynda...Thank you :)

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Our pleasure, Vijay!

  • @darryl2237
    @darryl2237 Жыл бұрын

    Great video!! Is this method better or using combine query = merge better to save the file size/ refresh time?

  • @peltiertech1879
    @peltiertech1879 Жыл бұрын

    Awesome, just what I needed.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    😊 cheers, Jon!

  • @vishalnasre1251
    @vishalnasre1251 Жыл бұрын

    Great Tip! Thanks for sharing :)

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    My pleasure, Vishal!

  • @jamespaterson4529
    @jamespaterson45292 жыл бұрын

    Thanks Phil& Mynda for the video. As a novice I found it quite difficult to follow because the excel file is the finished product and you jump a couple of stages in setting up the data set with queries which is fine for intermediate and advanced users but I'd have preferred a simpler approach starting with the raw data (I know its probably too basic for many but I'm a novice). Persevering I didn't find the list method particularly intuitive compared to non power query methods in excel so the video is one to refer back to.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi James, I understand what you're saying as you are not familiar with PQ, but loading a table into PQ is straightforward and I wouldn't want to go over that in every video I do. All you need to do is create a table in Excel by clicking into the data and then pressing CTRL+T. With the table created, and a cell in the table selected, go to your Ribbon -> Data -> From Table/Range. Or you can right click in the table and select Get data from Table/Range. In the PQ Editor you can then click on the Close & Load drop down (click the black arrow) in the Home tab and choose to Close & Load To .... then choose Connection Only. Regards Phil

  • @Gen_Win_
    @Gen_Win_2 жыл бұрын

    Thank you, a useful skill )

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Great to hear!

  • @mydigitalquill8945
    @mydigitalquill89452 жыл бұрын

    Thank you for taking up this topic Mynda! Can you please also share a video on XLOOKUP in power query!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    There's no such thing as XLOOKUP in Power Query as such because Power Query doesn't have Excel Functions. There's lookups using List Functions, which this video covers and there's lookups with Merged tables, which this tutorial covers: www.myonlinetraininghub.com/excel-power-query-vlookup

  • @sumondebnath7675
    @sumondebnath76752 жыл бұрын

    And this one is effective just awesome.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Great to hear!

  • @jonahviakeyboard
    @jonahviakeyboard2 жыл бұрын

    Does the exact match list approach perform fast as a merge between data and categories? A merge does the same thing - I like the cleaner code of the list approach but the ease of the UI merge is an advantage - performance is the deciding factor.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    It can depend on your data. How many rows? How many unique values? In my tests, using List functions is as fast if not faster than merging. You may need to use Buffer() functions on your lists to get the best performance.

  • @mmohon

    @mmohon

    2 жыл бұрын

    @@MyOnlineTrainingHub any videos on buffer use?

  • @republikadugave420
    @republikadugave4202 жыл бұрын

    Wow this is beyond amazing

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad it was helpful!

  • @ag3037
    @ag30372 жыл бұрын

    Thanks a lot for this.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    You're very welcome!

  • @saharsalehi8070
    @saharsalehi80702 ай бұрын

    Many thanks. Great help

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 ай бұрын

    You're welcome! 😊

  • @davecope3322
    @davecope33222 жыл бұрын

    Thanks Phil and Mynda - great video. What would the syntax be if the Categories table held both Category1 and Category2, and I needed both categories returned? Can your single step be expanded or would I need to essentially duplicate the Add Column? And, if we need a second Add Column (presumably requiring another search through Categories), would this mean that a Merge table would be more efficient?

  • @scoobystent

    @scoobystent

    2 жыл бұрын

    Great question ...... will be interested to see the reply to this one

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Dave, If you require 2 values to be returned I don't think you can avoid having 2 separate steps, and hence 2 lookups, to create 2 columns. Because the logic is to add the column, then do the lookup, rather then do the lookup and if you find it then add the column, you have to create the column first, requiring a step to do this. So in such a scenario would a merge be quicker? Maybe. I'd have to test with a representative sample of data. If you used List.Buffer() on your lists (columns) I'd expect that to boost performance. Phil

  • @davecope3322

    @davecope3322

    2 жыл бұрын

    @@MyOnlineTrainingHub Thanks Phil

  • @009hjs
    @009hjs Жыл бұрын

    It is a great solution ❤

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Glad you found it helpful!

  • @a.rakeshpatro
    @a.rakeshpatro2 жыл бұрын

    Wow. Great video

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad you liked it 😊

  • @hk_200k
    @hk_200k11 ай бұрын

    This one worth more "Like" button.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    11 ай бұрын

    Glad you think so!

  • @Giovanni-vx8xl
    @Giovanni-vx8xl2 жыл бұрын

    thanks for sharing! do you have a video showing a look up of a particular word from one table to another pls? i.e. ice cream, ice lolly, key word ice, show both of these.

  • @williamleveson-gower5088
    @williamleveson-gower50886 ай бұрын

    Thank you !. I was looking for a solution to bring data from a Dataverse table into custom column in PowerBI inside a SQL table, both data sources being used in a PowerBI model.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    6 ай бұрын

    Hope it was helpful!

  • @PHWiest
    @PHWiest2 жыл бұрын

    Well Done!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thx Philip

  • @willw8896
    @willw88962 жыл бұрын

    This was just what I was looking for. I didn't want to create multiple "merge" tables to use when having multiple index/reference tables (e.g. geographic region, category, etc.). I was going to merge "data" table to "index1" table to create "merge1" table, and then "merge 1" table with "index2" table to create "merge2" table, etc. I AM concerned with handing this off to someone else, though, because I don't often encounter users of the M language of power query at work. A short primer should be fine.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad it was helpful, Will!

  • @somysadr
    @somysadr Жыл бұрын

    It took me a long time to find this video. I should ask for a video of searching in your channel 🙂I have a table of 46K lines that I need to change some codes in it to their descriptions.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Glad you found us eventually 😊

  • @christopherskyap8985
    @christopherskyap8985 Жыл бұрын

    Thanks Phil & Mynda, it is position to use the same method for composite keys ? for e.g. Name and Date, for merge we will just highlight both columns thanks !

  • @philiptreacy714

    @philiptreacy714

    Жыл бұрын

    Hi Christopher, yes you can do this but you'd need to create a new column that combines the Name and Date into a unique identifier.

  • @yogiarismet1025
    @yogiarismet10252 жыл бұрын

    Hi Mynda, always wonder how in the add custom column window, you can see the quick view of any formula/available column by simply type in the custom formula field. that would save a lot of time rather than have to type everything manually. thanks in advance

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Great suggestion!

  • @kimmcgrath5837
    @kimmcgrath58372 жыл бұрын

    I’ve watched this multiple times - thanks so much. QQ - hopefully a simple one, is it possible to pull back more than one column in the add column?….I’ve tried to do this but it messed up so not sure how to work it or even if it’s possible?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Kim, glad the video is helpful. I should think you can add more than one column. Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @ismaelkourouma5558
    @ismaelkourouma55582 жыл бұрын

    Fantastic !!!!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad you like it!

  • @alvarorodriguezlasso
    @alvarorodriguezlasso2 жыл бұрын

    Amazing, dude

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad you liked it, Alvaro!

  • @mok0802
    @mok08022 жыл бұрын

    you are my saviour, merging the column in some cases are not efficient

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad you liked it 😊

  • @powerstill3883
    @powerstill3883 Жыл бұрын

    Thanks. I found it takes so long to refresh for a 20K lines data.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Hmmm, that's not ideal.

  • @StevenGoos

    @StevenGoos

    Жыл бұрын

    Same for me. I have exported the "CRM_Accounts" (29.789 rows) and the "CRM_Contacts" (38.729 rows) tables from MS Dynamics CRM and it takes well over 40 minutes to go through this. Meanwhile the memory utilization by Excel rose up to the 1.2 ~ 1.5 GB range, and the buffer reached already 4.84 GB when processing only 500 rows... I don't know the final numbers as I went away from my computer after 40 minutes to fix myself a drink. This very nice technique seems to be a memory bomb when dealing with larger tables, which is a pity, as I do like the method. Since the column in the All Contacts table contained a large number of null's I already tried to make it a bit more efficient with: = Table.AddColumn(#"Renamed Columns", "Sales Owner", each if [Account Number]=null then "" else CRM_Accounts[Sales Owner]{List.PositionOf(CRM_Accounts[Account Number], [Account Number])}) But I don't think it made any difference... @MyOnlineTrainingHub, any suggestions how to improve the performance or is the technique just not fit for larger (reference) tables?

  • @matthewdufty606
    @matthewdufty6062 жыл бұрын

    Excellent 👌

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thanks for watching 😊

  • @yuanzhang9487
    @yuanzhang94872 жыл бұрын

    Thank you so much for this great video! I applied it into my model it seems to be working but the query is extremely slow now and it takes really long time to refresh and load it. Is there a way to solve this issue? Thank you in advance!

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @yuanzhang9487

    @yuanzhang9487

    2 жыл бұрын

    @@MyOnlineTrainingHub I just saw your reply. I will post the question in the link. Thanks!!!

  • @SauliusBaublys
    @SauliusBaublys2 жыл бұрын

    Could this approach be used for big datasets? My PQ model is very complicated and slow because of a lot of merging, it takes >5h to refresh. So I always look for ways to speed it up. And yes, as someone wrote in another comment, it is important what happens when multiple values are found in look up.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Saulius, If you are doing a lookup (exact presumably) you should only get 1 match. I covered a scenario in the video (approximate match) where multiple items are selected. Do you have an example of the type of multiple match you mean? I don't know any reason it wouldn't work on 'big' datasets (how big is big?) Without seeing your data and queries it's hard to give any definitive guidance as to improvements. You may get faster performance by combining List.Buffer() functions to create buffered lists and then using these to do your lookups.

  • @lopher70

    @lopher70

    2 жыл бұрын

    Hey Saulius, I'm about to create a entire model with 7k rows and 50 cols in the main table, In your experience thiw could be a slow performance model? if does, then I would use other tool rather than PQ What do you think?

  • @SauliusBaublys

    @SauliusBaublys

    2 жыл бұрын

    @@lopher70 It depends on calculations and other tables you are doing. Few tables with 7K would not be very slow model IMHO. Also it depends on your PC. My table has 60K rows and >50 columns, but I merge it with other >50K tables (queries). And I have ~100 queries merged.

  • @gdecome
    @gdecome2 жыл бұрын

    This is really good ... PQ has a lot of very interesting and useful function that most of the people don´t know. It is great to have someone who could explain how they work. Do you have any test comparing the performance of two methods?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thx Gilberto. Yes I have some test data/code but it's in a really ugly file. Let me tidy it up before sharing.

  • @cajinguy218

    @cajinguy218

    Жыл бұрын

    @@MyOnlineTrainingHubwas there a large performance gain?

  • @ymoatassimbillah
    @ymoatassimbillah2 жыл бұрын

    Thanks for this video! I want just ask you a question! How do the functions apear while you taped the code on the box.. it deosn't work in my power query.. Thanks for your Nice job

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi, It's the Intellisense. Yours must be turned off. In the Power Query editor, go to File -> Options and Setings -> Query Options -> GLOBAL -> Power Query Editor and under Formula (on the right hand side of the window), make sure 'Enable M Intellisense ...' is checked.

  • @skimpylemon8034
    @skimpylemon8034 Жыл бұрын

    Hi, thank you for this video, it was really helpful! I came across -1 values which meant they were not found but PowerQuery has labeled them as "Error." Is there anyway I handle this so that instead of displaying "Error" it should say "Not found"? Please can you direct me to where I can find a solution to this?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Insert a step to replace the -1 values with 'Not found'.

  • @10ozGold
    @10ozGold2 жыл бұрын

    Hi Mynda and Philip, excellent video about List.PositionOf. How do you use List functions for multiple column conditions? It's time for me to move away from the slow performing PQ Merge Queries interface (which does allow multiple column conditions).

  • @philiptreacy714

    @philiptreacy714

    2 жыл бұрын

    Hi, can you give me an example of what you are trying to do ?

  • @10ozGold

    @10ozGold

    2 жыл бұрын

    @@philiptreacy714 Hi Philip, what if the [categories] had all duplicated rows, with an extra column, "Group", either as {"A", "B"}. Then [data] table also had an extra column "Group" {"A", "B"}. Now there are 2 conditions to lookup. Would a List function be possible? If so, this would be a game changer.

  • @s1ngularityxd64
    @s1ngularityxd64 Жыл бұрын

    brain has not melted 😁excellent

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    That's a good start 😁

  • @ssomtom
    @ssomtom2 жыл бұрын

    Great Video. I have a question in my work area. Is it possible to do the same, but not from a table, but from the end result of another step in the same query? Let me give you an example: I have a table. In the next steps, I perform calculations with the Group By function, filters, etc. In the next step, I recall the basic table again and want to insert the results of the calculations into the related rows of the table in a vlookup-like manner.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Glad you liked it :-) Just duplicate the query, use one for your grouping and the other to bring the grouped data into the original table.

  • @ssomtom

    @ssomtom

    2 жыл бұрын

    @@MyOnlineTrainingHub Thx your answer :) 151 / 5 000 I knew this solution, it just increased the file size due to the duplicate query and interested optimization reasons to see if it could be within a query.

  • @DinoAMAntunes
    @DinoAMAntunes2 жыл бұрын

    Hi, Very good. List.PositionOf function is like Match in excel? Correct?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Dino, List.PositionOf works in a similar way but doesn't require numeric values to be sorted like MATCH does when looking for largest or smallest values..

  • @shazreenify
    @shazreenify10 ай бұрын

    hello, i am new in power query. i need to use this strategy. but the thing is, my table (TABLE1) has used power query already loaded in 1 worksheet. on same workbook, I have added another table (TABLE2) in new worksheet forwhich one of its column need to match data and the get data to be added as another column to TABLE1. Ex. Table 1 with student name and grade needs to match with table 2 with name and sections. Result shall be in Table 1 with student name, grade, section as columns. I hope you can answer this. thanks much in advance.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    10 ай бұрын

    Please post your question on our Excel forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @toque15
    @toque152 жыл бұрын

    Would this improve performance? I have had issues using merge when the 2 tables being merged are one to one (the same record is on both tables but one of the tables has additional info which I need to incorporate). Both tables are about 500 K records big and when I try to merge them, PQ slows to a crawl.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Giancarlo, quite possibly with some tweaks. Can you post your data on our forum and I'll take a look at it. Phil

  • @kedarhatkar

    @kedarhatkar

    Жыл бұрын

    @@MyOnlineTrainingHub I am new to power query wondering why not use merge for the first part to get the category, could you please explain the pros of using this method and cons of using merge, thanks in advance really leran a lot from you videos 😊

  • @abhi22agg
    @abhi22agg2 жыл бұрын

    Hi Munda and Phile. Thanks for the great content. I have a query, please help. What if the lookup table has two columns one is for range and the other one is for sales (a calculated column). I want to rank the sales basis the range using approximate match in another table. Please help it's urgent 🥺

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @enricomendiola9952
    @enricomendiola9952 Жыл бұрын

    Thank you for this detailed video on how to replace vlookup using Power Query. Is it possible to make this process into a query function?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Yes you can!

  • @enricomendiola9952

    @enricomendiola9952

    Жыл бұрын

    Thank you 😊

  • @victoriasawyer1176
    @victoriasawyer1176 Жыл бұрын

    Is merging makes the query more slow than doing lookup using list?

  • @advrohitowhal9794
    @advrohitowhal97947 ай бұрын

    That is amazing! Thanks! But how we do where condition is "Exact match. If none found, return the next larger item". In excel we use xlookup but how we do in power query?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    7 ай бұрын

    Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @advrohitowhal9794

    @advrohitowhal9794

    7 ай бұрын

    Thanks. Hi after registrations, unable to login to post the question.

  • @advrohitowhal9794

    @advrohitowhal9794

    7 ай бұрын

    @@MyOnlineTrainingHub Query is Post this forum. thanks.

  • @jacquesnolte8881
    @jacquesnolte88812 жыл бұрын

    Hi. How do you activate the "formula/function assist" to show available functions/tables as he was typing it?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    It’s available in later versions of Excel. You’d need to upgrade to get it.

  • @sirdood
    @sirdood2 жыл бұрын

    How do you enable the hint bar when typing out the formulas in the custom column?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    You either have it or you don't. If you don't have it then you'd have to upgrade to a later version of Excel. I'm not sure what version it came out in, but it's definitely available with a Microsoft 365 license.

  • @gaurangpatel8934
    @gaurangpatel8934Ай бұрын

    How can this be used for just filling the blanks in column using reference og any of the column like a lookup... Just for blank values only

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Ай бұрын

    Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @ricos1497
    @ricos14972 жыл бұрын

    Great video, especially the combining of several steps into one, this often gets glossed over. I'm guessing that the approximate match with the assigned variable couldn't be combined in a single step?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thx Rico. Yes those steps could be combined (maybe I should have shown that in the video!) You'd need just 1 step - create a Custom Column with this code BonusRates[Rate]{List.Count( let val = [Sales] in List.Select( BonusRates[Threshold] , each _

  • @darrylmunday6475
    @darrylmunday6475Ай бұрын

    I have a list of employees and each has individual rates standard overtime rates which the timecards. Tell the rate to use looking for a simply way to return the rates. Any examples to look at please.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Ай бұрын

    Lookups sound like the way to go. If you're stuck, you're welcome to post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @SurajKumar-tc4tk
    @SurajKumar-tc4tk9 ай бұрын

    Helpful

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    9 ай бұрын

    Glad to hear that 😊

  • @nofilahmed2728
    @nofilahmed27282 жыл бұрын

    hey mynda the list.position function is taking more time thatn it would take in mergin the query is it supposed to be like that or am i doing something wrong could you please let me know?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @sergiomira741
    @sergiomira7412 жыл бұрын

    Hello!!! Greteengs from Colombia. I have a question, how can i do the same vlookup but conditional? For example, if condittion1 is ok then put in the cell "Ok" else go to another table and to do the same vlookup for to do another search.. Thankssss

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Sergio, please see this tutorial: www.myonlinetraininghub.com/power-query-if-statements

  • @Amaankhan-mg5xi
    @Amaankhan-mg5xi Жыл бұрын

    the logic workes but it subtantially increases the query load time to a point were if the data set is big then the query almost always times out, is there a work around for it.

  • @PhilipTreacy0

    @PhilipTreacy0

    Жыл бұрын

    Try using the List.Buffer function to store the list(s) in memory and you should see a speed improvement.

  • @Werrv
    @Werrv2 жыл бұрын

    Great tutorial... I'm sure I'm making a rookie error, but I have two tables [Product] and [Seasonal_Lookup]. Like you, I made Seasonal_Lookup connection only. Seasonal_Lookup has two Columns and I created the command " = Table.AddColumn(#"Add CL1 Margin", "Custom", each List.PositionOf(Seasonal_Lookup[Collection_Tag],[Title])) " . The one thing I have noticed and am getting stuck on is ... When I Enter the Power Query in the editor, it finds " Seasonal_Lookup " as a value I can insert, but, it can't seem to find the Column " [Collection_Tag] " within the table. I have a second Column names "Season" and I've tried that too. Is there some trick to having Power Query find the Column Header by name? it definitely shows as a column Header, but I've tried everything to try to address it and can't seem to. thanks

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    It's difficult to picture your problem, however it's important to understand that Power Query is case sensitive, so it will be looking for an exact match on any reference to column names. If you're still stuck please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @AnwarAlfaqeehAlhusseini
    @AnwarAlfaqeehAlhusseini2 жыл бұрын

    hi how we can relations between many to many ? for example table of customers sales and table payment customers table ? thanks

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Many to many is only possible in Power BI. I would set up a dimension table for your customers and create a many to one relationship between the customers sales and payment tables to the customers dimension table.

  • @AnwarAlfaqeehAlhusseini

    @AnwarAlfaqeehAlhusseini

    2 жыл бұрын

    @@MyOnlineTrainingHub thanks 🙏 I appreciate your help

  • @sumondebnath7675
    @sumondebnath76752 жыл бұрын

    Greeting madam, I tray to follow all of your vedio but due to enough time I can't follow all vedio. I have a request to you to make a vedio on material management specially in mechanical section.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thanks for the suggestion :-)

  • @santoshdevtale
    @santoshdevtale2 жыл бұрын

    Is this method work faster than merge step??

  • @kumshan1407
    @kumshan14072 жыл бұрын

    Will it work on large datasets?

  • @kumshan1407

    @kumshan1407

    2 жыл бұрын

    Is this an optimized solution for looking up value on large datasets

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Kumar, I don't know any reason it wouldn't work on 'large' datasets (how large is large?) I haven't optimised this in any way. I'd expect you'd get better performance by using the List.Buffer() function to create buffered lists that can then be fed into the List functions doing the lookups.

  • @saquibsher
    @saquibsher2 жыл бұрын

    My vlookup doesn't work on the values extracted through mid formula. when i copy-paste these values, means removing the mid formula then vlookup does work. i change the format to numbers as well but didn't get fix the issue. Can you help me, please

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @raajashekaran
    @raajashekaran2 жыл бұрын

    Hello man it is possible to get slope results in power query

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Probably, but I haven't tried it before.

  • @titilayoyomimajiyagbe8735
    @titilayoyomimajiyagbe87354 ай бұрын

    Thanks for the tutorial but it doesn't work with direct query

  • @ellukayou
    @ellukayou2 жыл бұрын

    Beautyfull

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Thank you Luciano

  • @krishnakishorepeddisetti4387
    @krishnakishorepeddisetti43872 жыл бұрын

    i tried this approach....though it reduces the number of applied steps, it takes a lot of time when i refresh the preview.....thats a major problem ..... merge happens in seconds.....am i missing anything here. any suggestions ??

  • @philiptreacy714

    @philiptreacy714

    2 жыл бұрын

    Hi, Try wrapping your lists in List.Buffer

  • @Kash97h
    @Kash97h3 ай бұрын

    how to do this if we need to look for more than one column?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    3 ай бұрын

    Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @pascaljoly5752
    @pascaljoly57525 ай бұрын

    what's the benefit of this compared to merging queries?

  • @pascaljoly5752

    @pascaljoly5752

    5 ай бұрын

    I am still fairly new at power query but i do use merge queries quite a bit in my work and i find it really easy to use where i'd have to watch this tutorial several times to get it. but if there is a real beneft, i shall do it

  • @72jamjam
    @72jamjam Жыл бұрын

    How do I compute Fifo method in power query

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    I don't have any examples I can point you to for FIFO.

  • @mskim10171
    @mskim101712 жыл бұрын

    How about using merge instead of list function?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    You can use the table merge approach if you wish as explained in these posts www.myonlinetraininghub.com/excel-power-query-vlookup www.myonlinetraininghub.com/power-query-approximate-match-vlookup

  • @felixstraube2784
    @felixstraube27849 ай бұрын

    This is not working so great for me. I have 10.000 rows of data and it take several minutes to complete the calculation. I guess i stick to joining the tables.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    9 ай бұрын

    That's a shame. I agree, do what works best for your scenario.

  • @davidferrick
    @davidferrick2 жыл бұрын

    This only works on a 1 to 1 right? 1 to Many does not work from what I can see.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Dayve, not quite sure what you mean. If you're doing a lookup, you'll only be looking up in 1 table? If you need to lookup the same value in multiple tables then you'll do a lookup for each table. Or consolidate lookup tables into 1 table and then do a single lookup returning multiple columns.

  • @mlltips
    @mlltips Жыл бұрын

    When I search for the column on the other table, it doesn't find the columns. What am I doing wrong ?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    Hard to say, Matheus. Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @cecewang70
    @cecewang70 Жыл бұрын

    I am not understanding the benefit of using power query in this example. If we use vlookup(), it's much quicker to find the answers.

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    Жыл бұрын

    With Power Query you can bring data into Excel from multiple sources, perform the lookup and then load just one table into Excel with no formulas. This is far more efficient than having a load of excess data and thousands of formulas in your file. Hope that helps clarify.

  • @SandeepYadav-vm5hd
    @SandeepYadav-vm5hd2 жыл бұрын

    Where is attachment ?

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    2 жыл бұрын

    Hi Sandeep, click SHOW MORE under the video and there's a link to it.

  • @martinadamcz
    @martinadamcz8 ай бұрын

    too fast for me :P bur.....I try

  • @MyOnlineTrainingHub

    @MyOnlineTrainingHub

    8 ай бұрын

    Reach out if you get stuck: www.myonlinetraininghub.com/excel-forum

Келесі