4 METHODS to Filter by a List in Power Query | Excel Off The Grid

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 68

  • @ziggle314
    @ziggle314 Год назад +8

    I like the way you cover multiple options for the same task. Nice job.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад +1

      I purposefully try to provide a progression with different techniques which hopefully help people to understand how things fit together. So I'm glad that comes across.

  • @chilaw2004
    @chilaw2004 Год назад +1

    You always pick worthwhile ideas and, where possible, multiple options to achieve the goal.

  • @zbatevp-vlogs610
    @zbatevp-vlogs610 2 месяца назад +1

    This is gold, because you are explaining the concept of the function and its parameters. keep doing what your doing Sir - you are AMAZING. Thank you!!!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  2 месяца назад

      Thank you. I appreciate that feedback. 😁

  • @davidfamilydoctor9430
    @davidfamilydoctor9430 Месяц назад

    Saved the best for last, meaning the technique of referencing a prior step. This example illustrates the technique well because it produces a list (of the top three), then by pointing to the Change-Type step, the query becomes a table again. In the past, I've grouped in a separate query, then went back to the first query and merged against the 2nd, to include only top 3.

  • @IvanCortinas_ES
    @IvanCortinas_ES Год назад +2

    Superb tutorial, as always, complete, going deeper when it is necessary to go deeper and explained in great detail. Thank you Mark.

  • @Oprimaita
    @Oprimaita Год назад +1

    This tutorial is just perfect. All Your explanations makes sense to me. It’s very clear. Thanks a lot.

  • @mohammedelsakally540
    @mohammedelsakally540 Год назад +1

    Another valuable video, thank you very much. We will continue supporting you for your continues support and valuable information.

  • @Picla_Peremohy
    @Picla_Peremohy Год назад +2

    Tremendous presentation Mark. Always have a wealth of actionable knowledge. Cheers

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад

      I share what I know (and discover) and am always pleased that it helps other people to save time in their jobs.

  • @edgarscheffrahn
    @edgarscheffrahn Год назад +1

    Many many thanks for this excellent video: just what i needed!

  • @YvesAustin
    @YvesAustin 6 месяцев назад

    Mark, simple and super effective. Thanks!!

  • @jeremynorbury
    @jeremynorbury Год назад +2

    List.Contains also plays nicely with query folding...and is executed on the server side for a DB connector.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад

      Merging is a simple SQL join, so is more likely to fold than List.Contains.

    • @jeremynorbury
      @jeremynorbury Год назад

      @@ExcelOffTheGrid List.contains certainly folds on SQL server and OData. The additional advantage is that you can combine a non- folding source for the list (like an excel query of a table) and the SQL continues to fold.

  • @shaunwilliams934
    @shaunwilliams934 8 месяцев назад +1

    Many Thanks. This really helped me

  • @ngaihone007
    @ngaihone007 2 месяца назад +1

    A very nice lecture. Thank you.

  • @kebincui
    @kebincui Год назад +2

    Super.Very well explained.👍👍

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад

      As always Kebin - I appreciate your feedback and support 😁

  • @mohsenabdelbaset
    @mohsenabdelbaset 3 месяца назад +1

    Thanks Mark, Great video

  • @peterfj6218
    @peterfj6218 Год назад +1

    Great work. Very well explained.

  • @ryanbartlett672
    @ryanbartlett672 2 месяца назад

    Helpful. Thanks!

  • @chriswall4795
    @chriswall4795 Год назад

    Really interesting - thinking of ways we might use this to streamline our processing ... already worked out the merge approach. Another thought - would be good to adjust the top 3 to top n by passing a number to PQ and using a parameter/variable in the code.

  • @joaquimcosta952
    @joaquimcosta952 10 месяцев назад

    It's the best tutorial about this subject..

  • @Sumanth1601
    @Sumanth1601 Год назад

    Excellent video as usual.

  • @Ghost-kx1ss
    @Ghost-kx1ss 5 месяцев назад

    Thank you for your video! It really helped a lot!👌

  • @FRANKWHITE1996
    @FRANKWHITE1996 Год назад +1

    Thanks for sharing ❤

  • @martyc5674
    @martyc5674 Год назад +1

    Good stuff Mark 👍

  • @TiffanyYoung-z7s
    @TiffanyYoung-z7s Год назад +1

    superb video, thank you.. auto subscribe, more tips and trick for power query please. Love it!!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад

      Thanks Tiffany - hold tight, there is more coming. Check out my previous videos for a lot of Power Query goodness too.

  • @nenadmomir
    @nenadmomir Год назад +1

    nice! thank you Sir!

  • @davidfamilydoctor9430
    @davidfamilydoctor9430 Месяц назад

    oh my. All this time I was using left-outer, then filtering out null results. Excited to instead use right-outer, then delete column. Plus, of course, the list filter technique avoids the merge completely.

  • @MarcoMagal
    @MarcoMagal Год назад +1

    Hi Mark,
    That's a great explanation.
    It is possible to do the same filter when you want to filter records that start only with some chars?.
    ex : #"Filtered Rows" = Table.SelectRows(#"Replaced Value1", each Text.StartsWith([Territory], "PT_PH_SM_")),
    I have try but only work if I have the complet value.
    //#"Filtered Rows" = Table.SelectRows(#"Replaced Value1", each List.Contains(Din_Filter_Territory,[Territory])=true),
    Kind regards,
    Marco

  • @alperkins66
    @alperkins66 8 месяцев назад

    A wonderful lesson!! Mark. Question: How should one deal with a list when the values are numeric? Or is there a way to have a numeric list? I had to change out my fact table to text so it would match the list and even work.

    • @alperkins66
      @alperkins66 7 месяцев назад

      For some reason I have not had this problem again, i.e., my list is pulling (filtering) values with no further problem. Must be some User error.

  • @vinhwizard
    @vinhwizard Год назад

    Great!!, and the second method makes slower, is it right?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад

      The Merge method is the fastest.

    • @vinhwizard
      @vinhwizard Год назад

      @@ExcelOffTheGrid I mean that the merge method makes the query slowly when run the big data. Is it right? I think that

  • @UjjawalKumar-u7d
    @UjjawalKumar-u7d Год назад +1

    Hey, I would like to filter by the same way but only with part of the text string available in the filter list

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад

      Rather than List.Contains use Text.Contains:
      = Table.SelectRows(#"Changed Type", each Text.Contains([Item],"C"))
      You can use an optional value to ignore case too
      = Table.SelectRows(#"Changed Type", each Text.Contains([Item],"C", Comparer.OrdinalIgnoreCase))

  • @s33thr3w
    @s33thr3w Месяц назад

    Is there a way to do the merge method but inverse (filter for does not contain)? Similar to "each not List.Contains"

  • @kailash680
    @kailash680 Год назад +1

    it is easier to follow if you show the right pane always

  • @willm7994
    @willm7994 Год назад

    Amazing 🤩

  • @avmstephen9716
    @avmstephen9716 Год назад

    i am in need some help in power query to do following task.can you suggest some solution.
    - some rows to be filterout based on some condition(all zero value) in a column
    -ranking to be applied in new column based on above filtered column.
    -All filtered rows to be restored, so that i will not have any ranking in the filtered rows.

  • @yesmayhem
    @yesmayhem Год назад

    Somehow, when I attempt the merge it filters out everything in the table that is not in the filter list. Does the list have to contain the exact matches in the table and nothing more? My table is huge.

  • @peterfj6218
    @peterfj6218 Год назад

    When I use that formula for filtering a dataset from a list, it wont recognize [Item] and therefore dont work. But if I use [#"Item"] it works. Do you know why that is?

  • @andreawey7419
    @andreawey7419 10 месяцев назад +1

    I have a query with 900k results and i know that there is a specific item, but It is not shown in Theo filter check/uncheck list... Why so?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад +1

      Because Power Query only shows 1000 row preview of the data so that it can run efficiently.
      You can always click on the Load More link at the bottom of the pop-up.

  • @SantiagoMedinaMesa
    @SantiagoMedinaMesa Год назад

    I have a question and if I need to chain several filters, how would it be?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Год назад

      I would use a List.Accumulate function looping over a Grouped table of Columns and Values. It would be tough, be definitely do-able.

    • @SantiagoMedinaMesa
      @SantiagoMedinaMesa Год назад

      @@ExcelOffTheGrid I have a question and if I want to filter with words that are in a text, what would the formula be?

  • @954giggles
    @954giggles Год назад

    What if you want to filter by three lists ? 3:16

  • @AngeloLimiti-o8o
    @AngeloLimiti-o8o 6 месяцев назад

    Great, thanks!! What if in the list of columns I get I want to filter the values that do not contain, as example, "ColumnXXX" ? Many thanks if you can help