Solving errors in CALCULATE filter arguments

Поділитися
Вставка
  • Опубліковано 27 чер 2024
  • This video explains the more common errors in CALCULATE filter arguments and how to solve them.
    Article and download: sql.bi/778253?aff=yt
    How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
    The definitive guide to DAX: www.sqlbi.com/books/the-defin...
  • Наука та технологія

КОМЕНТАРІ • 34

  • @RobertoStaltari
    @RobertoStaltari Рік тому +3

    Thanks for shedding light on these common calculate errors!

  • @kkaurkify
    @kkaurkify Рік тому +7

    I learned from your training that the Calculate() function always uses a table for filtering. This made understanding how the feature works much easier. And here, too, a very good understanding arises precisely because you convert the condition into a table. Thanks Marco.

  • @pratikghimire3938
    @pratikghimire3938 Рік тому +3

    Thoroughly enjoyed, Awesome explanation . Thanks Marco

  • @HueHoang-ex8lk
    @HueHoang-ex8lk 5 місяців тому +1

    you and Alberto are the best. still keep learning from your training and following your video on youtube that much help to understand DAX. thanks!

  • @dereklowry3111
    @dereklowry3111 Рік тому +3

    An excellent Video. Thank you!!! Please continue to make videos with this approach.

  • @mwaltercpa
    @mwaltercpa Рік тому +4

    Always wondered what that PLACEHOLDER error meant. Great video covering useful techniques and concepts from the most powerful function in DAX! :)

  • @marounsader318
    @marounsader318 Рік тому +2

    well, now we can enjoy DAX! thank you marco!

  • @bakalogatos7
    @bakalogatos7 Рік тому +2

    What a treasure- video ! Thanks for opening our eyes

  • @ssurajkr1234
    @ssurajkr1234 Рік тому +2

    Brilliantly explained! Please make more videos of such nature-- thanks!

  • @peterbogdanovich4043
    @peterbogdanovich4043 Рік тому +7

    Dude, this was a great video. although a lot of us might have came up with the same solutions by trial and error but I bet many of us, including myself, didn't know what the hell is happening underneath. Cheers!

  • @marcofestu
    @marcofestu Рік тому +1

    Thanks Marco, please keep up the great work. This channel is so useful to whoever wants to learn DAX!!!!

  • @Woodborn
    @Woodborn 2 місяці тому +1

    Thanks! That fixed my issue with the placeholder error.

  • @Milhouse77BS
    @Milhouse77BS Рік тому +3

    This was so helpful. I'm certain I've seen every one of these errors over the years. Sending to my coworkers to make their life easier.

  • @matthiask4602
    @matthiask4602 Рік тому +1

    Thank you so much Marco. Very insightful!

  • @mohammed333suliman
    @mohammed333suliman Рік тому +1

    As always great stuff from SQLBI, many thanks.

  • @PhilippeGrohrock
    @PhilippeGrohrock Рік тому +1

    Love the way you explain things. :)

  •  2 місяці тому +1

    An excellent Video. Thank you!!!Can you help me please to resolve a problem I'm having with filters? I tried to post my problem on forums but no one answers me and I'm really stuck. thanks in advance

  • @gregoryoliveira8358
    @gregoryoliveira8358 7 місяців тому +1

    Hi, thanks for sharing this amazing content with us. May I ask something? I am not sure if I understand the mechanism that generates this result.
    I am trying to understand the mechanism of this operation in terms of expanded tables. Well, if my concepts are correct:
    1. Cross-join will maintain the data lineage between the tables.
    2. Beside the result of the cross-join is a table with two columns; in more internal aspects, the cross-join generates/activates an expanded table with the fact in the middle and the dimensions in the boards.
    3. This expanded table can now be filtered considering the two columns in the dimensions tables.
    Have a great weekend! :-)

  • @msoffice6037
    @msoffice6037 Рік тому +1

    Thank you very much!

  • @laionegan
    @laionegan Рік тому +1

    Very useful video,thx

  • @totvabe1
    @totvabe1 Рік тому +1

    Brilliant!

  • @egbertdejong6377
    @egbertdejong6377 Рік тому +1

    This will be a + 50k video in no time ! 2 questions though
    1) any plans Microsoft is going to use yours and other MVPs knowledge to make these error message clearer highlighting potential solutions?
    2) is it safe to say when using variables you mitigate risk of running into errors. are there any scenario's why you should not use variables?

    • @SQLBI
      @SQLBI  Рік тому

      1) who knows
      2) variable does not save you from errors, but they make the code easier to read and to debug!

  • @Sandroider
    @Sandroider Рік тому +2

    Ciao, didn't know that I am your friend. BANANAS!

  • @nikhilramachandran9351
    @nikhilramachandran9351 Рік тому

    Hi Sir,
    Is there any replacement for allselected function since it is not working in custom tooltip?
    Thanks &Regards
    Nikhil

  • @sarajvo2010
    @sarajvo2010 Рік тому

    Great video. Filter argument of CALCULATE or predicate is the same terminology?

    • @SQLBI
      @SQLBI  Рік тому +1

      A predicate is a logical condition, which can be translated into a table automatically when it is used in a filter argument of CALCULATE. A filter is always a table. The predicate converts into a table only in that specific condition (filter argument of CALCULATE or CALCULATETABLE).

    • @sarajvo2010
      @sarajvo2010 Рік тому

      @@SQLBI thank you! Now I understand more, why context transition is hard to master.

  • @mattnyman9933
    @mattnyman9933 Рік тому

    What is the Total row in the last two examples (profitable Customers and Profitable Stores) telling us? it is not a sum of the numbers above, nor is it an average.

  • @user-qc9uj3th8t
    @user-qc9uj3th8t 3 місяці тому

    i didn't understand the removefilters logic can someone explain ???

    • @SQLBI
      @SQLBI  3 місяці тому

      I suggest that you review how the filter context works - look at the videos on this series: www.sqlbi.com/series/the-whiteboard/