Introducing CALCULATE in DAX

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 59

  • @snakeeyesOFFICIAL76
    @snakeeyesOFFICIAL76 2 роки тому +7

    this videos and channel deserve many more subscribers and views that they have... it is a hidden treasure

  • @jjpp1970
    @jjpp1970 2 роки тому +12

    Alberto,
    You are an expert in Dax and an expert in teaching.
    Congratulations for those strengths.
    Thank you for your great explanations.

  • @mathsexperts4901
    @mathsexperts4901 8 місяців тому +2

    This is the best UA-cam channel for learning DAX, I am learning so much from these videos. This channel really deserves to have more subscribers. I would love to purchase their DAX courses, but unfortunately prices are higher than my current income. I am following all of their youtube videos and free courses

  • @aslakjonhaugen3004
    @aslakjonhaugen3004 2 роки тому +16

    I wish this video existed some years ago when I tried to learn Dax!
    Fantastic way of describing the Calculate function!
    More videos of this type! 🙂

  • @jochendecraene5519
    @jochendecraene5519 5 місяців тому +1

    Since I discovered your channel, book and videos, I am finally starting to understand dax and its subtleties. Thank you for the quality study material!

  • @unboxingcategory3353
    @unboxingcategory3353 2 роки тому +2

    you are amazing,
    Iam a data analyst in Egypt,
    following you and your website,
    thanks for this amazing work
    DAX programming language is coming

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

    Wow, these are some of the most crucial lessons to learn. Thank you from Melbourne Au.

  • @gborka
    @gborka 2 роки тому +1

    Thank you for sharing, really great idea to build the understanding layer by layer:
    *Row Context
    *Filter Context
    *CALCULATE Function
    *Context Transition

  • @1yyymmmddd
    @1yyymmmddd 2 роки тому +3

    Thank you for another great video. Never considered that FILTER (Products, ...) filters entire expanded table.

  • @evedickson2496
    @evedickson2496 2 роки тому +2

    Brilliant video as always... even when I think I know the subject being shown, there is always a golden nugget I can learn and then use in work 😊😊

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

    Great and precise video (as always), really helpful for my job as Power BI Trainer/Consultant...Keep up the good work, thank you so much, mille grazie :)

  • @MrMalorian
    @MrMalorian 2 роки тому +3

    Yup, this is exactly what I keep messing up. The idea that the calculation overrides the visual filter is hard to get my head around. I just need to keep watching this video when it happens :)

  • @augustotanaka
    @augustotanaka 2 роки тому +1

    This 101 series is lovely! Thanks for all the knowledge!

  • @giorgikvatchadze4928
    @giorgikvatchadze4928 2 роки тому +1

    I find your videos very insightful, easy-to-follow and useful!

  • @felixosagie7130
    @felixosagie7130 2 роки тому +1

    Thank you so much Albert. This is very explicit and insightful. Much appreciates

  • @vietndk5437
    @vietndk5437 2 роки тому +1

    Thanks for the vid, Albert. Have a nice day

  • @Bremerhaven_Rocks
    @Bremerhaven_Rocks 2 роки тому +1

    Thank you. Can't wait for the Context Transition video =)

  • @sandeepbarge4699
    @sandeepbarge4699 2 роки тому +1

    Thanks for the series once again! Great video!

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

    God how I love this channel ❤

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

    Hi Alberto, many thanks for these very hepful videos. Just a quick question for newbies as follows:
    At 5:55. Red Sales overwrote the outer filter context which is by Color (all the rows are with values 382,601) but why the filter context by Brand, it doesn't overwrite as we can see Red sales by across different brands.

  • @wigf173
    @wigf173 2 роки тому +1

    Excellent video, as always! This series is great.

  • @beatrenger
    @beatrenger 2 роки тому +1

    Fantastic Content! Very cool. It has helped me a lot!!

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

    good job. i like the way how you are explaining things

  • @kostaskolotouros4345
    @kostaskolotouros4345 2 роки тому +1

    Another great video! Thank you so much!

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

    Fantastic, thanks for sharing!

  • @ssss54
    @ssss54 9 місяців тому

    @SQLBI at time 11:18 if we woulf have had ALL(Product), Product[Color] = "Red" then the outcome would have been different. Can you please elaborate the difference between the two please.

  • @edwardwernich9259
    @edwardwernich9259 2 роки тому +1

    Great video, thank you!

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

    How do you access values of a column in an unrelated table 'Y' when defining a new measure in table 'X'?

  • @maxpayne6317
    @maxpayne6317 2 роки тому

    7:15
    But here the calculate filter doesnt override the outer filter context right?
    Its combined together from my understanding.

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

    Loved it!!

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

    Great video! Can I found somewhere the sample pbix used for the tutorials?

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

      Follow the link in the video description

  • @karannchew2534
    @karannchew2534 2 роки тому

    Notes for future revision.
    Why / when use CALCULATE()?
    1. Change filter context.
    2. Enbale context transition.

  • @karannchew2534
    @karannchew2534 2 роки тому +2

    10:28 People try different combination until one that works.
    That's me!
    But hopefully not any more!

  • @kananparmar9656
    @kananparmar9656 2 роки тому

    Hi @Alberto Ferrari sir what dax we should make so that it can give us the break-up sale value for both if we take Brand or Color in single table view.

  • @isidrebague3659
    @isidrebague3659 2 роки тому +1

    As allways, Great!
    thanks you!

  • @amarnadhgunakala2901
    @amarnadhgunakala2901 2 роки тому +2

    Its most useful ,thanks

  • @tombennett7317
    @tombennett7317 2 роки тому

    Great video. Can you explain how PREVIOUSDAY works as a CALCULATE filter?
    The documentation says it just returns a single column table of dates so why does that work as a filter?

    • @SQLBI
      @SQLBI  2 роки тому

      Every time intelligence function returns a table, and every filter is a table.
      See this: dax.guide/previousday/

    • @tombennett7317
      @tombennett7317 2 роки тому

      @@SQLBI thank you for the response. I did check that out but it only confused me further. I'm struggling to understand how a table returned by a filter (especially a single column table) tells the calculate function what to do. In this instance the filter is just a row of dates, how does calculate know how to use and apply those dates?

    • @SQLBI
      @SQLBI  2 роки тому

      You should get a complete explanation of the filter context. A filter is always a table in the filter context. Start with the free Introducing DAX video course www.sqlbi.com/p/introducing-dax-video-course/, or read other content about the filter context: www.sqlbi.com/articles/filter-context-in-dax/

  • @mwaltercpa
    @mwaltercpa 2 роки тому

    Appreciate this video and the reminder to use KEEPFILTERS() over FILTER(Table). Question Alberto, if my entire page requires only calculations on the same customer subset, is writing KEEPFILTERS in each of my DAX measure more performant than using a single page filter over the whole report page? I ran into slow performance using a page filter… I rebooted, installed a new version of desktop, wrote my filters in calculate, and it performed much faster.

    • @SQLBI
      @SQLBI  2 роки тому +1

      It's hard to say - but a page filter in Power BI is just a column filter. Hard to say without a deeper analysis.

  • @meetdave9952
    @meetdave9952 2 місяці тому

    the file already has work in it. nothing for us to do.

  • @qasimjan5258
    @qasimjan5258 2 роки тому

    Are you going to do a series on Calculate?

    • @SQLBI
      @SQLBI  2 роки тому +2

      We already have a full training for that!
      Look at the free Introducing DAX training and the path to learn DAX at www.sqlbi.com/guides/dax/

  • @pbihari0214
    @pbihari0214 2 роки тому +1

    Thank you

  • @SandipanSarkar-c8v
    @SandipanSarkar-c8v 9 місяців тому

    Finished watching

  • @workstuff5253
    @workstuff5253 2 роки тому +1

    As someone learning DAX, if I were to be explicit, and write the full FILTER instead of the shortened predicate, do you know if performance would be the same?
    EDIT: Also, you mention "Never filter a table - only the columns you need". What is the correct way to filter columns when ALL isn't an option as VALUES only accepts a single columns.
    Thanks for the great video.

    • @SQLBI
      @SQLBI  2 роки тому +4

      See these articles/videos:
      www.sqlbi.com/articles/filter-arguments-in-calculate/
      www.sqlbi.com/articles/specifying-multiple-filter-conditions-in-calculate/

  • @nguyenanao4078
    @nguyenanao4078 2 роки тому

    Great! Thank you

  • @robertkiermasz4513
    @robertkiermasz4513 2 роки тому +1

    good movie :)

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

    he's the most italian person i've ever seen

  • @Milhouse77BS
    @Milhouse77BS 2 роки тому +1

    Yea🎉

    • @bobkiggundu9010
      @bobkiggundu9010 2 роки тому

      Incredibly helpful lesson to understand the fundamentals of Calculate function

  • @user-bk8db7ud6k
    @user-bk8db7ud6k Рік тому +1

    In this case, Ferrari is not second to Red Bull...

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

    boss of dax

  • @ДмитрийНикитин-и8о
    @ДмитрийНикитин-и8о 6 місяців тому

    Всё это, конечно, очень интересно... Только было бы гораздо понятнее на русском языке )))

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