DAX Fridays! #79: KEEPFILTERS

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 36

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

    I really ignored this function when reading the definitive guide to dax... This 6 mins video saved me one hour of reading and understanding

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      Glad you found it useful :)
      /Ruth

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

    So the benefit of KEEPFILTERS over FILTERS is KEEPFILTERS creates a temp table with only the column you are filtering on vs FILTER will create a temp table with all columns unless you use VALUES with it?

  • @frankgovers8420
    @frankgovers8420 6 ปีที่แล้ว +7

    Ruth, again great explanation, but........ question for microsoft >>>>> why are there so many ways to accomplish the same result? Keep it basic...

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

      Hi! Not Microsoft but my opinion:
      I think the reason we have overlapping with DAx Measures is due to development or evolution of DAX language.
      I have seen how they have created new functions to facilitate the use of the language which helps beginners tremendously.
      For us that have been around for a while is a bit confusing, but if you use those new functions like SELECTEDVALUE, you will soon fall in love with them.
      My two cents...
      Happy Friday!
      /Ruth

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

      Thx for reaction....little question, do you ever use quick measures?

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      Nop, but if I was a beginner I would definitely give them a go. Do you?
      /Ruth

    • @frankgovers8420
      @frankgovers8420 6 ปีที่แล้ว +2

      Hi ruth, no , because they are not always right, there are errors, and i dont like these “ wizards” because they dont explain anything and if you want to change anything, you still have to learn dax.

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว +2

      Same here, but remember that quick measures are not for us :)
      /Ruth

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

    This is great! Quick measures sometimes adds in a “keepfilters” aspect and i never knew what it did!

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      Neat function right?
      /Ruth

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

    What is the difference between filters and keep filter, if keep filters behave like a filter then what is the use of keep filters, when should we use give me some brief explanation

  • @lifeisstr4nge
    @lifeisstr4nge 6 ปีที่แล้ว +2

    Thanks for this, Ruth! Using this, I solved a pain in the ass problem of calculating the Q difference from last week. :) I didn't even know if that would work with this function, however it did! :)

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      Yey!!!! Powerpivot is powerful indeed :)
      /Ruth

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

      I'm using PBI and I find most of the formulas to be very cryptic. Hopefully I will learn the syntaxes of building complex formulas soon enough, though this was a very much needed quick-win. I didn't even think this was possible to adapt so easily. All I had to do was to alter a DATEADD formula by adding keepfilters for it to work :).

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      It takes time to learn DAX and i dont think even the most seasoned developers fully master it, but it is worth the learning curve as you can do amazing things with it :)
      /Ruth

  • @davidmendez3997
    @davidmendez3997 6 ปีที่แล้ว

    Hi Ruth,
    Thanks for your great videos!
    Quick question: how would you do the following:
    Calculate (
    Sum (ColumnValues),
    Keepfilters (week=Max (week)))
    And considering I have on the slicers multiple values selected for "week" field...
    I get the following error: a function MAX has been used in a true/false expression... blah blah

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      Hi! The best way to get support is to post in the power bi community. Thanks!
      /Ruth

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

    Ah cool. Syntax sugar for a FILTER(VALUES(column)., expression... ) ...
    At the moment I prefer not to use these kind of shortcuts because I want to ensure I understand precisely what I'm asking for and what I expect the engine to do.
    Still, thanks!

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      I agree with you, it is better to learn the default behavior :)
      /Ruth

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

    Hola tu expresión Filter, es mas eficiente así:
    CALCULATE([No_Employees,
    FILTER(Employee, Employee[Status]= "Terminated" && Employeed[Dep.] = "LA"))
    Usando Keepfilters queda así:
    CALCULATE([No_Employees,
    KEEPFILTERS(Employee[Status]= "Terminated" && Employeed[Dep.] = "LA"))

  • @piotrciesielski8881
    @piotrciesielski8881 6 ปีที่แล้ว

    Awesome video/series. First one on PBi i watched e2e.

    • @CurbalEN
      @CurbalEN  6 ปีที่แล้ว

      😊😊
      /Ruth

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

    great video

  • @stevennye5075
    @stevennye5075 5 ปีที่แล้ว

    excellent