Quick Vlookups in Power Query!

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 98

  • @GoodlyChandeep
    @GoodlyChandeep  3 роки тому +8

    Use this technique on smaller datasets which need enriching - like Dimension tables.
    Don't alternate this with Relationships between fact and dimension tables!
    Check out our newly launched M Language course ↗ - goodly.co.in/learn-m-powerquery/

    • @ratneshbansal5139
      @ratneshbansal5139 3 роки тому

      Hi,
      I tried using this technique to link and pull data from 3 different queries.
      Step-1: Pull a variable from Query 2, this one is kind of helper column;
      Step-2: Pull the final value from Query 3, based on the variable in helper column from Query 2;
      But at the very first step it is showing identifier error… it is not taking the reference to Query 2!
      In the video you pulled data from a simple query from a table (dimension table);
      What is the limit of this technique?

    • @maxsalfer
      @maxsalfer Рік тому

      That’s right! Merge is the only way to go for large tables.

  • @krishnakishorepeddisetti4387
    @krishnakishorepeddisetti4387 2 роки тому +5

    Bro... Amazing content.... i tried this ...but it is consuming more time than normal merge ..any thoughts ??
    My request would be to create a dedicated playlist for m language.... It will help a lot of people

    • @brandonm2099
      @brandonm2099 Рік тому

      Also, a little over my head or I didn't get the initial references and had a fact table that had duplicates. Wasn't sure it that would work or if no duplicates allowed. Either way, the merge seemed faster to create although I'm assuming more latency probably.

  • @vijaykrishnan4151
    @vijaykrishnan4151 3 роки тому +9

    I just love your videos, just straight to the point, no beating around. No grand entrance :). Thank you for such valuable power query tricks. I always have these questions in mind. You are answering them. I have found my love in power query again. Thanks, Chandeep. Keep it up.

  • @jonaskarlsson477
    @jonaskarlsson477 11 місяців тому +2

    IMPORTANT its { not ( it took some time to see my error

  • @Guilopes99
    @Guilopes99 3 роки тому +3

    Very underrated channel! Your content is great, you should position your content in a more UA-cam way like "stop doing this in excel, learn this in power query - forget vlookups!!"

  • @PeterKontogeorgis
    @PeterKontogeorgis 3 роки тому +4

    Nice technique. It always seems a lot harder to do lookups than it should be.
    Any idea on the performance of this approach compared to a merge?

  • @safrasism
    @safrasism 2 роки тому +1

    i got below error when i use this code.
    let
    valueneed= #"Master-Countries"[UID] ,
    position=List.PositionOf(#"Master-Countries"[Country],[Country])
    in
    valueneed{position}
    Error message below
    Expression.Error: The index cannot be negative.
    Details:
    Value=[List]
    Index=-1

    • @clementefu3306
      @clementefu3306 6 місяців тому

      Did you solve it? I added a + 1, but it's taking me one position below

    • @clementefu3306
      @clementefu3306 6 місяців тому

      I understood the reason, there are values that are not in the reference table

  • @wayneedmondson1065
    @wayneedmondson1065 3 роки тому +2

    Hi Chandeep. Love tricks like this! So efficient and elegant. Thanks for sharing :)) Thumbs up!!

  • @yussufabdallah4826
    @yussufabdallah4826 3 роки тому +1

    thank you so much
    we can do that also without variables and without let-in
    "Leaves[LeaveCount]{List.PositionOf(Leaves[EMP ID],[EMP ID])}"

  • @krishnakishorepeddisetti4387
    @krishnakishorepeddisetti4387 2 роки тому +1

    Hi Chandeep, i tried this approach...but the data load with this is very slow compared to Merge and both merge and positionof make the file size same.
    how is this approach beneficial. help me with your inputs
    Thanks and Regards
    Krishna P.

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      I agree merges are faster.. I wouldn't recommend this on a large table

    • @krishnakishorepeddisetti4387
      @krishnakishorepeddisetti4387 2 роки тому

      @@GoodlyChandeep thank you chandeep.... I am going through all your content this weekend 😀😀🙂🙂....your techniques are unique and can be life savers at many inatances

  • @bagnon
    @bagnon Рік тому

    It seems like Key Match Lookup could have been used as well:
    Tablename{[Field Name = Condition]}[Column Name]

  • @ziomekzedzielni1
    @ziomekzedzielni1 18 днів тому

    Would like to see the performance comparison of ur solutions comparing to what normal people uses.
    In this case that would be even more interesting because I noticed searching with lists is much slower rather than merging on bigger datasets. So even more steps with merging compensated rather than using lists. It's possible I use lists the wrong way so would like to see it on sets with couple thousands rows and 20+ columns

  • @rajkumargerard5474
    @rajkumargerard5474 3 роки тому +1

    Great technique, thanks a lot for the video it will be very helpful to all who r using power bi.

  • @LinhTran-ys1mt
    @LinhTran-ys1mt Рік тому

    Why make it so complicated?
    Just use Merge queries - Left Outer then it work exact the same way with far better speed and accuracy.

  • @xLidyx
    @xLidyx 7 місяців тому

    I don't get it. I did exactly the same tables and exactly the same m code, still got Column1= null and Leave Count = error

  • @cbhang
    @cbhang 3 місяці тому

    Hi, pls suggest if the calculation time with this method will also be lesser than Merge in power query?

  • @kriskris4760
    @kriskris4760 Рік тому

    what do when u have 2 milion rows, and each must look-up in 260 thousnad rows ;-)

  • @alexking8222
    @alexking8222 3 роки тому +1

    Another superb video. Thank you very much!

  • @marcusmayer1055
    @marcusmayer1055 3 місяці тому

    Чим ваш метод кращий за звичайння злиття? (куча, ручної роботи, потрібно відраховувати нумерацію у списках)

  • @rikinzayituriki1414
    @rikinzayituriki1414 2 місяці тому

    Hi Chandeep, is it posisble to do it with multiple conditions as well?

  • @FRANKWHITE1996
    @FRANKWHITE1996 3 роки тому +1

    Another great video! Thanks for sharing!!

  • @georgeww600
    @georgeww600 Рік тому

    Hi Chandeep, I have to keep recreating the transformations because I can't figure out how to apply saved Advanced Editor M-Code to new data. My data is Sept 2020 and Sept 2021, Oct 2020 and Oct 2021, and Nov 2020 and Nove 2021. I want to keep the transformed data separate for each month. I'd like the pairs of months/years to start out in different folders. I keep having to recreate the action steps.

  • @jeromeastier462
    @jeromeastier462 2 роки тому +1

    So elegant - i particularly appreciate your approach: you systematically go through the logic first, then show its various applications. I totally agree this channel is VERY underrated

  • @RohitThakur-ku8sb
    @RohitThakur-ku8sb Рік тому

    Your course , mastering dax in power bi is going to live sessions or pre-recorded sessions? I would like to learn DAX from you

    • @GoodlyChandeep
      @GoodlyChandeep  Рік тому

      Live - goodly.co.in/powerbi-6day-workshop/
      Pre-Recorded - goodly.co.in/learn-dax-powerbi/

  • @demris15
    @demris15 Рік тому

    Great video... very helpful... I would be interested to see a performance comparison with merges vs "vlookups" though ... I've been using this method to create Key columns and there is certainly a performance difference, but it is hard to tell exactly how much

  • @elrevesyelderecho
    @elrevesyelderecho Рік тому

    3:45 I'm from the future...an "INDEX" DAX function for Power Query...nice!!

  • @madhun8092
    @madhun8092 3 роки тому

    When am trying to combine the workbooks .. am getting the option table and sheet. If am selecting table it’s giving me error.

  • @davidlopez-fe2lb
    @davidlopez-fe2lb 2 роки тому

    what if our leaves table had 7 columns we wanted to bring over instead of 1 column, is there a way to pull all seven or would we need to do this for each column?

  • @qrsimon
    @qrsimon 2 місяці тому

    everytime I learn these small techniques I get exited to learn how to improve on it even more:) this helpes!

  • @ShamalKaden
    @ShamalKaden 3 роки тому

    I have a query on this such I have a large file of 9 companies where the inventory is handling in 2 systems. I had to pivot to make a summary of 9 companies and need to compare the same through Vlookup. Is there any easy way to do this?

  • @georgeww600
    @georgeww600 Рік тому +1

    I love your clear and concise UA-cam videos. Thank you

  • @UlyssesHaq
    @UlyssesHaq 3 роки тому

    Excellent knowledge, thank you for sharing. You say this is good for dimension tables, does this mean this would not be good for doing a lookup against fact tables, with say.. 6million rows... Performance issues maybe?

  • @zdzislawkes
    @zdzislawkes 2 роки тому

    Hi. I am wondering what are the differences between these approaches (e.g. does this affect the query performance?):
    let
    leavelist = Leaves [Leaves Count],
    position = List.PositionOf (Leaves [EMP ID], [EMP ID])
    in
    leavelist {position}
    vs
    Leaves [Leaves Count] {List.PositionOf (Leaves [EMP ID], [EMP ID])}
    May be is it just cosmetics?

  • @riddharupbhattacharyya2963
    @riddharupbhattacharyya2963 8 місяців тому

    Microsoft be like one problem 5 solutions

  • @prateekkalra3864
    @prateekkalra3864 2 роки тому

    Hey, Can you explain on how to reverse first and last name with comma in power query from a certain column?

  • @eysinesvolley-ball6955
    @eysinesvolley-ball6955 Рік тому

    Awesome, that's super simple and very useful, thanks for taking time to guide us through this good trick!

  • @rohitkarnani0506
    @rohitkarnani0506 Рік тому

    Hi Chandeep, this was very helpful, thankyou, I have used the same in one of the automation process, it works well. But want to understand is there any limitation on this. The dataset i used has more than 1000 rows and lookup field is approx 150

  • @aryansena7290
    @aryansena7290 3 роки тому

    Hi ,
    Can you create a table as per slicer selection .. consider I'd column in a rows like 1,2,3,4. And a slicer using this I'd column.. now if I select I'd from slicer 3 then a table will be created which has all data with I'd 3. Please let me know if requirement is not clear

    • @srininvasrao7629
      @srininvasrao7629 2 роки тому

      Dear sir, your power query teaching and videos are done in a professional way, i all ways follow your video!!! I have a query !!! When I am handling with tables having above 5 lakhs when I have to compare the data tables with another master tables Excel is taking long time for retrieving and running query when I am using merged query!!! Can I make the query run faster by using list . Functions / mcode to overcome it , pls suggest to improve query running time ?

  • @idakwiatkowska2862
    @idakwiatkowska2862 2 роки тому

    It's cool. But how do you proceed when the lists aren't exactly the same? Like in one list you have "name xyz" and in another list "the name Xy. Z" and you want to search for name?

  • @kumshan1407
    @kumshan1407 3 роки тому

    Thanks very good technique to do vlookups in power query. Is it an optimized way of doing vlookups in power query? Will it work faster on larger dimension tables like more than 2 lakh rows of data.

    • @GoodlyChandeep
      @GoodlyChandeep  3 роки тому +1

      Although 2 lakh rows isn't much. It don't recommend this technique. Use relationships as much as possible.

  • @leroyholmes9131
    @leroyholmes9131 2 роки тому

    Your explanations are excellent. How would you do this if in one table both columns had nested tables and you wanted to add a column to one of the nested tables that pulled data from the other nested table?

  • @gabrielgordon
    @gabrielgordon Рік тому

    Hi Chandeep, great as always, and helpful

  • @garysmith3777
    @garysmith3777 4 місяці тому

    Great video, Is this method faster than a merge?

  • @YvesAustin
    @YvesAustin Рік тому

    Thank you Chandeep; yet another use case of lists! Reading your comment here Chandeep: "use this on smaller data sets". Can I apply this to a table with 100,000rows? I have exactly this problem on a very large scale. The merge takes a long time. I am considering testing Table.Buffer or maybe better put it all in the Data Model and DAX it all out!

    • @GoodlyChandeep
      @GoodlyChandeep  Рік тому

      Merges will be faster than this approach. Why can't you ditch the merge in PQ and instead work with relationships in PowerBI. They are super snappy.

    • @YvesAustin
      @YvesAustin Рік тому

      @@GoodlyChandeepYep! That is what I am thinking. Won't be in BI, but Excel Power Pivot will work! 👍👍

  • @M4D5K1L2
    @M4D5K1L2 3 роки тому

    Dude, love your videos. To the point and simple to understand. Subscribed!

  • @williamarthur4801
    @williamarthur4801 Рік тому

    Really liked the List.Postionof which I've never used before, tying before watching, I used
    SelectRows,
    Table.AddColumn(Source, "Custom", each
    Table.SelectRows( IdCount, (A)=> A[Id] = _ [Id] ) [Id Count] {0} ),
    if you have a list of multiple matches rather than the positional place you can wrap in List.Sum.

  • @syedaneesdurez7197
    @syedaneesdurez7197 2 роки тому

    Sir,
    How to extract mulitiple columns data by using List.PositionOf function rather than using merge.
    Please advise. Thanks

  • @abhinayrozer7379
    @abhinayrozer7379 3 роки тому

    Every video of you Making our life simple.... Thanks a lot buddy.
    Appreciations for your great hardwork

  • @mattschoular8844
    @mattschoular8844 Рік тому

    Interesting... Thanks Chandeep

  • @hiteshjal143
    @hiteshjal143 Місяць тому

    Amazing

  • @namangarg7875
    @namangarg7875 2 роки тому

    Suppose i purchase ur course and after taking the course if i encounter some doubts in your vdos how do they are resolved because that is the main thing if the doubt is solved withing shorter time frame??

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      Hi Naman, I typically answer doubts within a day or two.
      But there are also times when I do not know the answer in which case it takes longer or worst I am not able to solve at all

    • @namangarg7875
      @namangarg7875 2 роки тому

      @@GoodlyChandeep if a person like you says like that i am not able to answer makes me doubtful for this DAX complications. Because the way u have explained anything in your vdos is phenomenal thanks for context transition. Sir will i be getting the practice files in your course of DAX??
      And how to contact you or your team for further enquiry about your course??

    • @namangarg7875
      @namangarg7875 2 роки тому

      Sir please reply

  • @singhalmonica
    @singhalmonica 2 роки тому

    Sir, pls guide how can we get more than one record

  • @elrevesyelderecho
    @elrevesyelderecho Рік тому

    8:27 Nice trick! Thanks.

  • @vijayarjunwadkar
    @vijayarjunwadkar 3 роки тому

    Nice tutorial Very useful! 😊👍

  • @mayurt4628
    @mayurt4628 Рік тому

    How to get in contact with you

  • @paolosoloperto4948
    @paolosoloperto4948 3 роки тому

    Good video. Very helpful 👍

  • @keagankemp6275
    @keagankemp6275 3 роки тому

    Appreciate this thank a mil

  • @PValili
    @PValili 3 роки тому

    really good. appreciated

  • @mahnoorafridi9872
    @mahnoorafridi9872 2 роки тому

    Very nice and simple technique😃

  • @rrrraaaacccc80
    @rrrraaaacccc80 Рік тому

    Excellent 💯👍

  • @morpando926
    @morpando926 3 роки тому

    Great stuff, really helpful

  • @ashishmohan4707
    @ashishmohan4707 3 роки тому

    Wow chandeep
    Very informative tutorial
    Your way of explanation is very clear
    I have 1 request can you plzzcheck ur mail
    I have sent u something
    Please can you reply there.
    Regards,
    AM

  • @DineshP-v4y
    @DineshP-v4y Рік тому

    Wow .. ❤

  • @winbin82
    @winbin82 3 роки тому

    GooooooooooD!!

  • @caioalabarse8933
    @caioalabarse8933 Рік тому

    Ammazing approach

  • @pk5134
    @pk5134 3 роки тому

    Great video! Could you please do a video on functions ? Using let, in and each and _ operators ? I find it confusing accessing elements of nested tables. How would you go about doing that