Power Query - Exact Match Lookups (1 Goal; 3 Methods)

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

КОМЕНТАРІ • 45

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

    This is interesting because the position ID acts like a unique table ID. I definitely have lots of uses for this, thank you.

    • @bcti-bcti
      @bcti-bcti  Місяць тому +1

      @@Acheiropoietos Yes, it does. Many uses are possible. Glad it is helpful to you.

  • @shrikeshpattni3188
    @shrikeshpattni3188 Місяць тому +1

    Like seriously the way you teach is just amazing! It rare to find a diamond like you!! (seriously)

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

      That is such a sweet and heartwarming thing for you to say. Thank you!

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

      Can't agree more.

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

      @@chandrakanthagarwal1174 Thank you!

  • @JuanCVazquez-s9k
    @JuanCVazquez-s9k Місяць тому

    Thanks for the video. Very well explained. I write a lot of queries, but this will definitely help me simplify them and save time. You are definitely the best Excel teacher in UA-cam.

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

      Awwww. That is so nice of you to say! Thank you so much.

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

    Wow, all the forms you presented are very well explained, very clear! Thank you very much for your classes. Thanks a lot!

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

      Happy to have been of service!

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

    Interesting way to solve it. Thank you very much for sharing!!!

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

    Thank you, this technique will simplify a query I recently wrote!

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

      It's so nice to hear when a video has immediate benefit! Glad it helped.

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

    Another great video, thank you!

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

      Glad you enjoyed it!

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

    Thanks, Professor! As usual, great content.

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

      Thank you, great student!

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

    Very nice video.

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

      Thank you very much!

  • @SakthiVel-ye3mo
    @SakthiVel-ye3mo Місяць тому

    Fantastic explanation...

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

      Thank You!!!! We appreciate your support.

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

    Very creative solution, hadn't thought about that yet! I'm also interested in knowing if there are some performance benefits of method 2 (or 3) compared to a normal merge. I'll try to do some testing myself too. Will also check out what happens if you have multiple matches in the results. Thanks for another great suggestion!

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

      This is first thing came to my mind, since using merging I believe there is some performance issue especially when u have a large data set to scan through, definitely I ll check this method

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

      Performance will likely change depending on the data sources involved. But it's cool to know, if nothing else.

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

      Thank YOU for your support. Let us know what you discover.

    • @scotolivera8207
      @scotolivera8207 Місяць тому +1

      @@bcti-bcti I actually tried it, and trust me, sticking to merging queries is way better. When I tested this, it took around 10 times longer.

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

      @@scotolivera8207 Wow! That's good to know. What were the data sources?

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

    Nicely explained thank you. I like the change type added to the end of the step. I’ve been doing that as a final step and removing earlier ones as I’m not overly confident writing code myself yet. I was also wondering about if this method has any speed benefits over merge.

    • @bcti-bcti
      @bcti-bcti  Місяць тому +1

      I'm going to try to perform some test to see if one way is better than the other. My guess is that it depends on the data sources. Thanks for your support.

  • @RonDavidowicz
    @RonDavidowicz Місяць тому +1

    Nice solution. Any idea if there is any performance advantage to either method?

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

      I'll try to do some testing in the next few days to see if there is any difference from a speed or model size perspective. Thanks for watching.

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

      @@bcti-bcti I was thinking about the same. Would be interesting to see the results of such tests. One of recent videos (don't remember the author) showed that merge as the quickest function when dealing with large datasets for filtering where one filters out through merger anti. Thanks

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

    Thank you for this. Very well timed as I am currently working on a query with a lot of "lookups." After 2 different merge steps, a filter using a list, custom columns using if statements to return true/false (another kind of lookup), the query is starting to take too long to execute. All that to ask: When is it better to use List.PositionOf vs. a Merge?

    • @bcti-bcti
      @bcti-bcti  Місяць тому +1

      I think it comes down to the data sources and the number of records. You should always perform some timing/performance tests using both methods to see which performs better or worse. One might be better in Situation A, but fair worse in Situation B. Thanks for watching.

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

    I have a business case that I send the sheet to 4 persons, then the main sheet with me .
    i do vlookup to get the values in a specific column from the 4 persons is there anyway to do a vlookup but in the power query from the 4 sheets?

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

      @@ahmedshalaby9343 Without having seen the data, I would assume simple merges would be the key to solving your issues.

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

    what if if need to lookup to two differente values? what would be the solution in that case? is there any & option and wildcard like in EXCEL?
    thanks in advance!

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

      Power Query does not natively support wildcards. However, below is a link to an article on mimicking the behavior as close as possible:
      gorilla.bi/power-query/wildcards/

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

      Thanks a lot, I was using && but with no luck

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

      @@jacopo326 I could have sworn I replied to your comment, but it appears to be missing. Glad you got it working.

  • @JuanCVazquez-s9k
    @JuanCVazquez-s9k Місяць тому

    Hi Professor, I notice that if I use "List.PositionOf" and it doesn't find the value, it will return a (-1), so, therefore the lookup returns an error. I could add another step to replace the errors, but if you find a walkaround to avoid another step, will be helpful. Thanks in advance for your feedback.

    • @bcti-bcti
      @bcti-bcti  Місяць тому +1

      Either replace the errors, or nest the "List.PositionOf" within an IF to check for the -1 occurrences. Thanks for watching.