Dynamic Filter by a Range of Values in Power Query

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

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

  • @wayneedmondson1065
    @wayneedmondson1065 3 года назад +9

    Hi Chandeep. Excellent lesson! I like to try and solve before watching. Was able to generate the filtered results using List.Contains.. so.. must be learning something. Also, in watching your method, I realized that you can make the results return the opposite (all items not matching the filter) by changing =true to =false. Nice bonus lesson to understand how to take an action based on the results of the dynamic filter. Always good learning at Goodly! Thanks for sharing :)) Thumbs up!!

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

    This video made my life much simpler. Another tutorial overly complicated this dynamic filter with multiselect parameters. thanks a bunch!

  • @Just-My-Opinion
    @Just-My-Opinion 3 года назад +2

    You explained exactly what I needed without adding unnecessary explanations. Thanks !

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

    Very illuminating! Thank you!

  • @blairhall8379
    @blairhall8379 3 года назад

    Fantastic! Helped me complete a task I've had on my plate for a while. Thanks!

  • @MrDhunpagla
    @MrDhunpagla 3 года назад

    Jaadu bhai Jaadu .... Awesome & super helpful 👍

  • @hemant5757
    @hemant5757 2 года назад +2

    Hi chandeep...its a good way for small sets of data....on applying this formula on large datasets its time consuming....any idea if we can do it faster using list.buffer or table.buffer

  • @johannlotter4984
    @johannlotter4984 3 года назад

    Lovely straight forward explanation. Thanks

  • @arunkumark6351
    @arunkumark6351 3 года назад

    Plain and Simple. Its Awesome!

  • @SuperDarekR
    @SuperDarekR 3 года назад

    As always. SUPER TRICKS. Thank you very much

  • @dirkstaszak4838
    @dirkstaszak4838 3 года назад +2

    Interesting. Thanks for sharing. One question though. One could combine the tables for filtering inner or outer join. Would that be different in performance?

    • @GoodlyChandeep
      @GoodlyChandeep  3 года назад +1

      I suspect applying joins might slow down the query. But I haven't really tried it.

    • @dirkstaszak4838
      @dirkstaszak4838 3 года назад

      @@GoodlyChandeep thank you it is also that came in my mind. Would your solution also work with a filter list to exclude values?

    • @GoodlyChandeep
      @GoodlyChandeep  3 года назад +1

      ​@@dirkstaszak4838 Yes. Just replace the true with false
      Read the comment from @wayne edmondson

    • @DhruvDua88
      @DhruvDua88 3 года назад +1

      @@GoodlyChandeep Glad I came across this video, I was doing this using joins and it was slowing down my query. Converting it into list and then using list contains is an elegant solution.

    • @dirkstaszak4838
      @dirkstaszak4838 3 года назад

      UPDATE: I applied this newly learned solution, but unfortunately with a large list up to 8000 entries the merge way seems to work faster. Did anybody encounter similar issues?

  • @kimgraf4085
    @kimgraf4085 2 года назад

    Super helpful and powerful. Just what I needed!

  • @djkujo007
    @djkujo007 2 года назад

    Great video and explanation. You have a new subscriber. Thanks!

  • @pedroandrade5668
    @pedroandrade5668 2 года назад

    Perfectly what I needed. THANKS!!

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

    Great video. Solved my need.

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi 2 года назад

    Hi Chandeep, your all videos are excellent, Thanks for creating such tutorials. I have one query, how to combine multiple queries into one using Table.combine function in power query dynamically. list should be picked from Excel Table.

  • @abdullah_alhathloul_
    @abdullah_alhathloul_ 2 года назад

    Awesome..useful..interesting..thank you

  • @michaszymanski3066
    @michaszymanski3066 11 месяцев назад

    Thank you for your video. Let say I want to keep such filter but instead of adding all A,B,C etc I want to enter in this list all and is such case I want see all the values.

  • @TheAso0202
    @TheAso0202 3 года назад +1

    Hi Chandeep, thank you very much for this excellent video, it's very helpful for me. However, I would like to add a specfic filter "ALL" in the list of filtered values in order to remove the filtered values and get my original list. Do you have an idea how to proceed please? Thank you very much for your help. Best Regards. Rajen

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

    Love this video, thank you!

  • @prashantpaygonde9864
    @prashantpaygonde9864 2 года назад

    Thanks bro. really this is is very help full me.

  • @nouvel_hobbes
    @nouvel_hobbes 2 года назад

    Very helpful, thanks!

  • @MoonShine-bs6cl
    @MoonShine-bs6cl Год назад

    Hi your explanation is awesome, but if i want to apply a dynamic filter in power query on or before date of end of current month... Pls help

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

    Hi Chandeep,
    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?.
    #"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

  • @Just-My-Opinion
    @Just-My-Opinion 3 года назад +1

    Hey I ran into an issue,
    The query works form me. However it takes very long to finish loading after I hit refresh. It does eventually load but after 5+ min.
    I do not have a lot of data. without this filter, the table loads in 15 secs.

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

    Thanks. It helped me in realtime.

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

    you are GREAT. THANKS

  • @siddheshamrutkar8684
    @siddheshamrutkar8684 2 года назад

    Can we implement the same over powerbi dataset through live connection..

  • @urosmaksimovic
    @urosmaksimovic 2 года назад

    This should sort my problem. Thanks

  • @_rudolf.ganglbauer_
    @_rudolf.ganglbauer_ 3 года назад

    Hi Chandeep! Great video as usual.
    What do you think about an inner join?

    • @GoodlyChandeep
      @GoodlyChandeep  3 года назад

      I think inner join is going to be faster.

  • @HPDStudios
    @HPDStudios 2 года назад

    Great video--- I just can't get my head around why we can't run a standard SQL query on a table, taking values from cells or ranges. The whole concept of Power Query appears to be broken from the foundation. I just want to Filter rows where values are matched.

  • @Shinupp
    @Shinupp 3 года назад

    Thanks it was very helpful

  • @sniedrich
    @sniedrich 3 года назад

    Thank you, this is really useful.

  • @nileshhaval2666
    @nileshhaval2666 3 года назад

    Nice video as usual, Would be really helpful..!

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

    hi, i have 2 columns Age and weight in Numbers., i try to filter max weight for the age below 10 yrs. i used following syntex. But it is saying that We cannot convert a value of type Function to type Logical. May i know how to solve this in powerquery or with index match.
    = Table.AddColumn(#"pstep", "Custom", if [Age]

  • @kennethstephani692
    @kennethstephani692 3 года назад

    Great video!

  • @VKIRA2802
    @VKIRA2802 2 года назад

    What would you do if your range os above 1000 different records?

  • @vikrampurohit8660
    @vikrampurohit8660 3 года назад

    Hi Chandeep very good video, just want to know if I have to filter value column with criteria greater than >50, less than

    • @GoodlyChandeep
      @GoodlyChandeep  3 года назад +1

      That condition can be added using the Filter Drop Down in Power Query

    • @vikrampurohit8660
      @vikrampurohit8660 3 года назад

      @@GoodlyChandeep thanks a lot

    • @oliverscheurich9202
      @oliverscheurich9202 2 года назад

      You can try this. "greater" and "smaller" are values. They are the results from drilled down lists.
      let
      Quelle = Excel.CurrentWorkbook(){[Name="Tabelle22"]}[Content],
      #"Geänderter Typ" = Table.TransformColumnTypes(Quelle,{{"Spalte1", type text}, {"Spalte2", type text}, {"Spalte3", Int64.Type}}),
      #"Gefilterte Zeilen" = Table.SelectRows(#"Geänderter Typ", each [Spalte3] > greater and [Spalte3] < smaller)
      in
      #"Gefilterte Zeilen"

  • @Caspios2
    @Caspios2 3 года назад

    brilliant stuff bro

  • @Batmanananana
    @Batmanananana 3 года назад

    How would you make a dynamic filter with values between Monday and Friday?

  • @haroonsheikh8653
    @haroonsheikh8653 3 года назад

    Is there a way to do this without an Exact match? Like in Excel if I were to filter and search one word everything containing that word would pop up. In Power Query, nothing would show up unless it was an exact match.

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

    Hi chandeep, I want to filter reporting in employee master having two columns one is employee name and another one reporting person, have to list out under VP
    Vice president - ass manager - manager - Team leader - executive

  • @mnowako
    @mnowako 3 года назад

    It’s a good one. Thanks!

  • @minamishail_Tech2024
    @minamishail_Tech2024 2 года назад

    Hi, how can I search for a text as part of another text/cell value?
    if myCell = PartialText then myCell
    else "Search not found in any cell"

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

    I have a sheet with multiple blank rows in it. I want to load and transform the data of this sheet, but it load only top 30 rows. Please help me

  • @enricomendiola9952
    @enricomendiola9952 2 года назад

    Hi Sir. Great video! Is it possible to create a video similar to this but filter a date range like start date and end date as criteria or parameter.

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

    Thank u very much!!!

  • @argokusumandani9773
    @argokusumandani9773 3 года назад

    Thank you Sir👍

  • @patrickrafidimanantsoa2297
    @patrickrafidimanantsoa2297 3 года назад

    Awesome!

  • @karimfayazi
    @karimfayazi 3 года назад

    wonderful ................

  • @mirrrvelll5164
    @mirrrvelll5164 3 года назад

    Smooth, nice thx!

  • @williamarthur4801
    @williamarthur4801 2 года назад

    Great Vide, never thought to use contains, i'd have just used an ListMax() or Listmin.
    I was trying something similar in PBi, and found this if I declared the min and max in the formula
    the keepfilter did not work ;
    CALCULATE([Measure], KEEPFILTERS(Table1[Item] = MAX(Table2[Item]) || Table1[Item] = MIN(Table2[Item]) ) )
    Completely ignored the "AND" part (item = A ,B,C,D),, but if I made them a variable thus ;
    VAR lowerV = MIN(Table2[Item])
    VAR upperV = MAX( Table2[Item])
    RETURN CALCULATE([Measure],KEEPFILTERS(Table1[Item] = lowerV || Table1[Item] = upperV ))
    Then worked fine, just wondered if anyone reading this has a view as to why?

  • @amandeepsinghsandhu4906
    @amandeepsinghsandhu4906 3 месяца назад

    It's good but it's too slow for my data set. I created filter of 114 rows and my data set size is 200 mb. Am waiting from past 15 minutes. Seems like, need other trick

  • @Tuqueque1
    @Tuqueque1 3 года назад

    Everytime I do this it prompts a [Binary] cannot turn into Binary type… suggestions

  • @shoaibrehman9988
    @shoaibrehman9988 3 года назад

    Great

  • @mauroalejandroescalantelei3103
    @mauroalejandroescalantelei3103 3 года назад

    for some reason I don't get source but rather removerows in the formula

  • @SamehRSameh
    @SamehRSameh 3 года назад

    How can i filter data between 2 date ؟؟

    • @rezazadeh1422
      @rezazadeh1422 3 года назад

      Hi Sameh,I have your problem have you find a solution?

    • @SamehRSameh
      @SamehRSameh 3 года назад

      @@rezazadeh1422
      M code

    • @rezazadeh1422
      @rezazadeh1422 3 года назад

      @@SamehRSameh i used "Contain.min" and "contain.max" and volla!!

  • @AnalyticalJha
    @AnalyticalJha 2 года назад

    Hi,
    I will use name in slicer to filter content in power BI, I want to filter on basis that if I select ramu then output should be like given below.
    Siurce
    No Name FillterData
    1111 Ramu 1111|1121
    1112 Shaym 1112
    1113 Dharam 1113
    1114 Kuber 1114
    1115 Roshan 1111|1115
    1116 Ramu1 1112|1116
    1117 Shaym2 1113|1117
    1118 Dharam1 1114|1118
    1119 Kuber1 1115|1119
    1120 Roshan1 1116|1120
    1121 Ramu1 1117|1121
    Output
    No Name FillterData
    1111 Ramu 1111|1121
    1115 Roshan 1111|1115
    Thanks in advance