Understanding CALCULATE in DAX: Filters

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • Getting a thorough understanding of DAX helps you in creating amazing reports. In CALCULATE, your filtering arguments are key here in changing the evaluation context. Restrict your context or remove filters and much more!
    Master Functions and Syntax in M
    powerquery.how
    ABOUT BI Gorilla:
    BI Gorilla shares videos and articles on Power BI and Excel to help you improve your skills.
    SUPPORT MY CHANNEL
    Any videos are made free of charge. You can support my channel by giving a donation through: paypal.me/rickmaurinus.
    Website: gorilla.bi
    SUBSCRIBE TO MY CHANNEL
    th-cam.com/users/bigorilla?sub_con...
    LET'S CONNECT:
    Blog: gorilla.bi
    Facebook: / bigorilla
    Twitter: / rickmaurinus
    LinkedIn: / rickmaurinus
    Thank you for your support!
    #PowerBI #Calculate #BIGorilla

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

  • @sjpark6782
    @sjpark6782 2 หลายเดือนก่อน

    I like your step by step explanation.

  • @andreashermle2716
    @andreashermle2716 7 หลายเดือนก่อน

    very well explained, thank you very much for these insights into this function

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

    Great explanation.

  • @luda_c
    @luda_c 2 หลายเดือนก่อน

    Excellent channel, thank you!

  • @muskhha
    @muskhha 2 ปีที่แล้ว

    Very handy and useful

  • @drindataviz-xd5db
    @drindataviz-xd5db 3 หลายเดือนก่อน

    thank you for this!

  • @williamarthur4801
    @williamarthur4801 2 ปีที่แล้ว

    Good introduction and well explained as ever, here it comes, I would have liked to see
    the 'long' syntax for the two table filter, as i think that's better when learning how things actually work together. BTW loved the fibonacci sequence.

  • @user-hz6gw3uk6z
    @user-hz6gw3uk6z 3 หลายเดือนก่อน

    thank you.

  • @alexrosen8762
    @alexrosen8762 2 ปีที่แล้ว

    Great tutorial. Thanks :-)

  • @decentmendreams
    @decentmendreams ปีที่แล้ว

    Thank you so much . When am I going to get a breakthrough on Filters ? I understand everything but can’t write it free flow like you and other pros .In order for me to get to that level I need to understand it as much as I understand 2+2= 4. Otherwise all I do now for complex filter Daxes is copy and paste.

  • @rogelioluna4220
    @rogelioluna4220 ปีที่แล้ว

    What do you do if you want to filter 2 color?

  • @jps11086
    @jps11086 2 ปีที่แล้ว +1

    Thanks

  • @Lightscripture
    @Lightscripture 7 หลายเดือนก่อน

    This was great,, thank you! Also, I am trying to do something similar. I have 2 tables, T1= all orders. T2= errors. I need to calculate the percentage of errors for each client(where the list is in the thousands) based on the client name, and then filter by date. The logic I came up with was :
    error percentage = calculate[count(order errors) / count(total orders)] , CUSTOMER NAME CONDITION , but I am not quit sure how to do the syntax. Any help would be greatly appreciated!
    or if you have a more elegant solution I will take it too!
    Thank you!

  • @markhenderson3771
    @markhenderson3771 10 หลายเดือนก่อน

    How can I use OR with a filter instead of AND?

    • @shwetajuyal4106
      @shwetajuyal4106 10 หลายเดือนก่อน

      && for AND and || for OR

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

    I need to get max date for each equipment number with condtion
    If service =x then max date
    Else '' '
    SELECT EQUIPMENT_NBR, MAX(CASE WHEN IN_SERVICE_IND = 'y' then NEXT_INSPECTION_DATE ELSE '2001-01-01 00:00:00' END ) AS maxdate FROM vari.VESSEL_INSPECT_VIEW group by equipment_nbr
    With above i am getting business logic
    But when i am try join this table with main table ..i am getting error ..bcz we have duplicate equipment number ..
    Equipment number with sevice x,y,blank
    If you have any idea pls help me

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

      Hi Pandian. I'm afraid I don't follow the example. Hope you solved it!