Optimizing nested iterators in DAX

Поделиться
HTML-код
  • Опубликовано: 26 июл 2024
  • Possible optimization approaches to improve the performance of nested iterators in DAX. Article and download: sql.bi/70755/?aff=yt
    How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
    The definitive guide to DAX: www.sqlbi.com/books/the-defin...
  • НаукаНаука

Комментарии • 43

  • @AgulloBernat
    @AgulloBernat 3 года назад +20

    I can't belive these awesome videos don't even have ads,

    • @lukeminikoski
      @lukeminikoski 3 года назад +1

      It's self-ads!

    • @Wzxxx
      @Wzxxx 2 года назад

      Soon they will

    • @SQLBI
      @SQLBI  2 года назад +3

      We have no plans to add ads. After all, we already promote our courses!
      www.sqlbi.com/training/

    • @AgulloBernat
      @AgulloBernat 2 года назад

      @@SQLBI great courses, by the way

    • @Wzxxx
      @Wzxxx 2 года назад

      @@SQLBI Honestly i am not against any ads especially when people share their knowledge which they collect for years.

  • @agasti2007
    @agasti2007 3 года назад +6

    I like your video even before watching it. SQLBI is my favourite thing on internet.
    - a DAX and MDX fan.

  • @diegomsg
    @diegomsg 2 года назад +1

    So much clarity presenting complex solutions with simple approaches.

  • @lukeminikoski
    @lukeminikoski 3 года назад +1

    Watching this kind of videos, I'm pretty sure theat video courses and the books are the best investments I ever made!
    Thank you!

  • @omalinsky
    @omalinsky Год назад +1

    thank you, Alberto
    this video goes so well with reading the chapters on calculation context, Calculate, and context transition in the Definitive Guide to DAX!

  • @lmblancoancos
    @lmblancoancos 3 года назад +1

    Thank you Alberto, the whole video is great, but the final trick, when you change the code to made it work with only one iteration is fantastic

  • @jiajinliang6121
    @jiajinliang6121 2 года назад +2

    Thank you Alberto for such a clear and thorough lecture! It is just awesome

  • @mnowako
    @mnowako 3 года назад +1

    Unbelievable useful lesson. Thank you, professor Alberto.

  • @JontyLP
    @JontyLP 3 года назад +1

    Great video, awesome that you share your knowledge openly like this!

  • @smartdata678
    @smartdata678 3 года назад +3

    Ciao Alberto!
    I love your: This is always dangerous! :)
    Good video as always!

  • @ramonillarramendi3191
    @ramonillarramendi3191 2 года назад +1

    Amazing!! Excellent video and explanation. Thank you very much

  • @Bharath_PBI
    @Bharath_PBI 3 года назад +1

    Enjoying DAX! Thank you 👍

  • @viniciusfernandes3552
    @viniciusfernandes3552 Год назад +1

    Thanks Alberto.

  • @Milhouse77BS
    @Milhouse77BS 3 года назад +1

    Thanks. Makes me feel need to rework my longer running DAX queries.

  • @3danim8r1
    @3danim8r1 3 года назад +2

    That's beautiful! Really amazing

  • @satishkumardommeti8282
    @satishkumardommeti8282 3 года назад +1

    Simply awsome. You are indeed a DAX Super Guru.

  • @pratikfutane8131
    @pratikfutane8131 Год назад +1

    Thanks a lot Alberto! Great video!

  • @danjarupath
    @danjarupath 3 года назад +1

    Awesome !!!
    Appreciate that you contribute a lot to all over the world world 🌍🌍🌍🌍🌍

  • @RobertoStaltari
    @RobertoStaltari 3 года назад +1

    Pure gold. Thanks

  • @wodraeve
    @wodraeve 3 года назад +2

    Thanks. I would be interested in seeing a few videos on how to deal with 'time'. What if your granularity is at a second level? How does this affect your model and your measures? Splitting date and time or both? Etc...

  • @101Kotetsu
    @101Kotetsu 3 года назад +1

    Buen trabajo!

  • @arifismayilli6936
    @arifismayilli6936 9 месяцев назад +1

    Perfect !!!

  • @tibobago
    @tibobago 3 года назад +1

    Thanks Alberto, another great video. Super interesting to see that you can actually use nested iteration by adding granularity and in your example it was super quick. I have the perfect dataset to test all that tomorrow!

  • @questionsformedb8157
    @questionsformedb8157 3 года назад +1

    Super good

  • @lanasedayanoch
    @lanasedayanoch 3 года назад +1

    The best lecturer in the world! Just one question (not sure if you do answers) - why Performance Analyser and Dax Studio server timings had 25% difference in speed?

    • @SQLBI
      @SQLBI  3 года назад +2

      Every run could be different, but DAX Studio does not include the time required to fetch the result, which is probably included in Performance Analyzer.

  • @DIGITAL_COOKING
    @DIGITAL_COOKING 3 года назад +1

    please question: if I said that I understand clearly the video (beside your high quality of teaching of course 🙂) does it mean that I grab some basics about DAX concepts?

    • @SQLBI
      @SQLBI  3 года назад +1

      Yes you should!

  • @Th3M0rri
    @Th3M0rri 2 года назад

    nice to see a mechanical keyboard :) What switches are in there?

    • @SQLBI
      @SQLBI  2 года назад

      You can find the hardware used in the videos here: www.sqlbi.com/blog/alberto/2021/02/14/on-my-recording-gear/

  • @kadirkkkk
    @kadirkkkk Год назад

    I stuck on nesting 4 level hierarchy and sum/average based on row parameter. Could not find an exit so now turning back to power query to handle this. sorry dax

  • @NoShadowOfDoubt1
    @NoShadowOfDoubt1 3 года назад

    Hello Alberto, I have some questions: 1- are these RUclips videos same videos that you offer in the course? 2- will you cover DAX excel solutions in Excel in the course, for an example, selected value and remove filters don’t exist in power pivot, ? Thank you

    • @SQLBI
      @SQLBI  3 года назад +1

      No - the video courses have different videos and also include exercises. The course is a more structured approach to basic concepts and detailed analysis of syntax/use/optimization (depending on the video course).
      The videos on RUclips are focused on single issues.
      The second question is not very clear - the Mastering DAX video course is a course about the DAX language that you can use with different tools. The examples and the exercises use mainly Power BI, but the language is the same across all the platforms.

  • @paragkhandalkar
    @paragkhandalkar 3 года назад

    Can you please create something on dynamic currency conversion in powee bi..we use sap bw data in power bi..and we yet do not have solution for dynamic currency conversion.. please can you create a video on that..will be very usefull

    • @SQLBI
      @SQLBI  3 года назад

      It's already available here: www.daxpatterns.com/currency-conversion/

  • @benjison1000
    @benjison1000 Год назад

    What about if the 2 two tables that are used are Many to Many? It looks like in this example product/customer are on the 1 side, so sales can be used. In my case I need to look at both table1 and table2. Both table1 and table2 have millions of rows.
    i.e.
    SUMX(
    Table1, --many side
    SUMX(
    FILTER(
    Table2, -- many side
    Table2[BuyStatus] = 3
    && Table2[ClientKey] = Table1[ClientKey]
    && Table2[DebtorKey] = Table1[DebtorKey]
    && (Table2[TransPostDate]=(Table1[MonthEnd2]-30))
    && (Table2[CloseDate]>'Table1'[MonthEnd2] || ISBLANK(Table2[CloseDate]))
    ),
    Table2[Amt]
    )
    )

  • @visheshjjain
    @visheshjjain 3 года назад

    Why did we use variables inside the SUMX() and not just use the respective columns?

    • @SQLBI
      @SQLBI  3 года назад +1

      No differences, by using variables the code is self-documented (the variable name describe the purpose of the sub-expression).