Quick Vlookups in Power Query!

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 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.

  • @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.

  • @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

  • @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?

  • @georgeww600
    @georgeww600 ปีที่แล้ว +1

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

  • @wayneedmondson1065
    @wayneedmondson1065 3 ปีที่แล้ว +2

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

  • @qrsimon
    @qrsimon 2 หลายเดือนก่อน

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

  • @ziomekzedzielni1
    @ziomekzedzielni1 14 วันที่ผ่านมา

    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

  • @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 ปีที่แล้ว +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.

  • @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

  • @rajkumargerard5474
    @rajkumargerard5474 3 ปีที่แล้ว +1

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

  • @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?

  • @marcusmayer1055
    @marcusmayer1055 3 หลายเดือนก่อน

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

  • @rikinzayituriki1414
    @rikinzayituriki1414 2 หลายเดือนก่อน

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

  • @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! 👍👍

  • @abhinayrozer7379
    @abhinayrozer7379 3 ปีที่แล้ว

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

  • @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?

  • @prateekkalra3864
    @prateekkalra3864 2 ปีที่แล้ว

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

  • @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?

  • @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?

  • @jonaskarlsson477
    @jonaskarlsson477 11 หลายเดือนก่อน +2

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

  • @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/

  • @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.

  • @mattschoular8844
    @mattschoular8844 ปีที่แล้ว

    Interesting... Thanks Chandeep

  • @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

    • @GoodlyChandeep
      @GoodlyChandeep  ปีที่แล้ว

      It might be slow on large datasets.

  • @hiteshjal143
    @hiteshjal143 หลายเดือนก่อน

    Amazing

  • @mahnoorafridi9872
    @mahnoorafridi9872 2 ปีที่แล้ว

    Very nice and simple technique😃

  • @PValili
    @PValili 3 ปีที่แล้ว

    really good. appreciated

  • @keagankemp6275
    @keagankemp6275 3 ปีที่แล้ว

    Appreciate this thank a mil

  • @syedaneesdurez7197
    @syedaneesdurez7197 2 ปีที่แล้ว

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

    • @GoodlyChandeep
      @GoodlyChandeep  2 ปีที่แล้ว

      I'd recommend you to use Merge. I suspect that it is faster

    • @syedaneesdurez8766
      @syedaneesdurez8766 2 ปีที่แล้ว

      @@GoodlyChandeep Thank you

  • @morpando926
    @morpando926 3 ปีที่แล้ว

    Great stuff, really helpful

  • @caioalabarse8933
    @caioalabarse8933 ปีที่แล้ว

    Ammazing approach

  • @paolosoloperto4948
    @paolosoloperto4948 3 ปีที่แล้ว

    Good video. Very helpful 👍

  • @winbin82
    @winbin82 3 ปีที่แล้ว

    GooooooooooD!!

  • @mayurt4628
    @mayurt4628 ปีที่แล้ว

    How to get in contact with you

  • @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

  • @riddharupbhattacharyya2963
    @riddharupbhattacharyya2963 8 หลายเดือนก่อน

    Microsoft be like one problem 5 solutions

  • @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

  • @Guilopes99
    @Guilopes99 3 ปีที่แล้ว +3

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

  • @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

  • @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?

  • @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.

  • @FRANKWHITE1996
    @FRANKWHITE1996 3 ปีที่แล้ว +1

    Another great video! Thanks for sharing!!

  • @kriskris4760
    @kriskris4760 ปีที่แล้ว

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

  • @bagnon
    @bagnon ปีที่แล้ว

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

  • @alexking8222
    @alexking8222 3 ปีที่แล้ว +1

    Another superb video. Thank you very much!

  • @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.

  • @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.

  • @eysinesvolley-ball6955
    @eysinesvolley-ball6955 ปีที่แล้ว

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

  • @garysmith3777
    @garysmith3777 4 หลายเดือนก่อน

    Great video, Is this method faster than a merge?

    • @GoodlyChandeep
      @GoodlyChandeep  4 หลายเดือนก่อน

      nopes.. merges are a lot faster

  • @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?

  • @gabrielgordon
    @gabrielgordon ปีที่แล้ว

    Hi Chandeep, great as always, and helpful

  • @elrevesyelderecho
    @elrevesyelderecho ปีที่แล้ว

    8:27 Nice trick! Thanks.

  • @M4D5K1L2
    @M4D5K1L2 3 ปีที่แล้ว

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

  • @rrrraaaacccc80
    @rrrraaaacccc80 ปีที่แล้ว

    Excellent 💯👍

  • @DineshP-v4y
    @DineshP-v4y ปีที่แล้ว

    Wow .. ❤

  • @vijayarjunwadkar
    @vijayarjunwadkar 3 ปีที่แล้ว

    Nice tutorial Very useful! 😊👍

  • @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?

  • @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

  • @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.