Deep dive into measure filters in Power BI Desktop

Sdílet
Vložit
  • čas přidán 13. 09. 2021
  • In this video, we perform a deep analysis of the DAX queries generated by Power BI when you use a measure as a filter in a Power BI visual.
    The DAX code generated might show a different behavior whether the measure is part of the values shown in the visual or not.
    Article and download: sql.bi/721618?aff=yt
    How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
    The definitive guide to DAX: www.sqlbi.com/books/the-defin...
  • Věda a technologie

Komentáře • 25

  • @sane7263
    @sane7263 Před 2 lety +2

    Enjoying DAX because of you! Thanks Alberto😀

  • @Amr-Ibrahim-AI
    @Amr-Ibrahim-AI Před 2 lety +1

    Thanks Alberto for the detailed explanation!
    I enjoyed the thought process and learned A LOT from this valuable video

  • @sriramsundar4
    @sriramsundar4 Před 2 lety +1

    This is such an excellent explanation!! Thank you

  • @khurramshahzed4925
    @khurramshahzed4925 Před rokem +1

    I couldn't find the way, how I thanks to you for your devastating effort to teach. Allah bless you with health, prosperity and knowledge. Ameen. You are

  • @ejazahmedev
    @ejazahmedev Před 2 lety +2

    Thank you for democratizing such advanced knowledge. God Bless!

  • @matthewdufty606
    @matthewdufty606 Před rokem +1

    I love this video. Thank you for making it ✅🌹💫

  • @fr1sket363
    @fr1sket363 Před 2 lety

    Yes i have seen this very example in a report i built, the difference is now i understand why 😆. Thanks so much.

  • @Bharath_PBI
    @Bharath_PBI Před 2 lety +1

    That's Bananas and interesting to know the behaviour of summarizecolumns() and allselected (). Thank you. 👍

  • @LuciusSullaFelix
    @LuciusSullaFelix Před 2 lety +2

    I’ve booked marked this video so I can come back to this again as I didn’t follow the entire concept.

  • @pbihari0214
    @pbihari0214 Před 2 lety +1

    Thank you

  • @IoriYagamiKOF98
    @IoriYagamiKOF98 Před 2 lety +5

    instead of modify the base measure [Amt], coudln't you modifiy the [Ranking] measure Inside the RANKX by adding a zero to the CALCULATE ([Amt]...) +0 ?, so the base Measure [Amt] keeps returning blank for future reports?

    • @SQLBI
      @SQLBI  Před 2 lety +1

      It looks like a good option. The video is more about how to find the issue and debug it. The solution, then, really depends on the specific requirements. Thanks for bringing this to our attention!

  • @kalinduSekara
    @kalinduSekara Před 2 lety +1

    Great 👍

  • @brianligat9493
    @brianligat9493 Před 7 měsíci +1

    You guys are wearing out my Like button.

  • @MrJrhzues
    @MrJrhzues Před 4 měsíci +1

    TOP PERFORMERS BY YEAR

  • @odeddror8916
    @odeddror8916 Před 2 lety

    What will happened if we use Top 2 Descending instead of ranking?

  • @christianstork1049
    @christianstork1049 Před 2 lety +5

    Thanks for this detailed analysis. Worth its time already because of the methodology. However, to be honest, this seems more like a sophisticated illustration of a bug in Power BI. An internal optimization shouldn't justify occasional incorrect results nor cause extra work on behalf of the users. :-(

    • @porraloka31
      @porraloka31 Před 2 lety +3

      If powerBi had to calculate every single blank value it'd speed down the engine quite a lot and we'd complaining about how slow PowerBi is.

    • @Davide73
      @Davide73 Před 2 lety

      You are right - PowerBI is full of bugs that are "feature"... on the top of the list there is the so called "Auto Exist"; what is very funny is that MS Excel doesn't have it. It has been introduced in the PowerBI engine. The problem is that Microsoft and their evangelist will never admit them, so they will never be fixed.

  • @gizmo928
    @gizmo928 Před 7 měsíci

    Could the alternative solution be to change the ALLSELECTED() function in the Ranking measure 4:37 to ALL()?

    • @gizmo928
      @gizmo928 Před 7 měsíci

      Nvm, I don’t think that will work, will still get a blank Amt value

  • @johnjiang7456
    @johnjiang7456 Před 11 měsíci +1

    It is a great video! I have a similar issue that uses a measure as a slicer( you use filter, a little different). I am not able to solve the problem. Like your example, if I would like to show all sales that ranked the top 2 for each year, not based on the sum for all years, how can I do it? That is to say, I would like to show values for Apple, Pear, and Banana 100, 200, blank for 2010, blank, 500, 350 for 2011, and 600, 100, blank for 2012. It would be greatly appreciated if you could offer some helps. Thanks

    • @SQLBI
      @SQLBI  Před 11 měsíci

      See www.sqlbi.com/articles/filtering-the-top-products-alongside-the-other-products-in-power-bi/

  • @marcostrevinorodriguez1254

    Do you give online courses?

    • @SQLBI
      @SQLBI  Před 2 lety

      Yes, you can find all our trainings at www.sqlbi.com/training