Optimizing SUMMARIZE by using ADDCOLUMNS - Unplugged #40

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

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

  • @kot23
    @kot23 2 года назад +7

    Your videos are a wealth of information, it's like unlocking DAX superpowers! Thanks for your efforts, keep it up please.

  • @Anthony_Lecoq
    @Anthony_Lecoq 2 года назад +11

    What a master class! Thanks Alberto for sharing those tips and tricks. And your way of reasoning. Very valuable :)

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

    I love the method of comparing your [Test] measure to the original measure to ensure that the expected result is still obtained. I already wrap my SUMMARIZE() in ADDCOLUMNS(), but this was a wonderful tip to learn!

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

    Best ever cooking show!
    I just try to absorb and repeat way of thinking
    Thank you, Alberto!

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

    I like part Test to return zero to check optimisation. As always, simple and great video. Thank you!

  • @Yo-px9xw
    @Yo-px9xw 2 года назад +1

    it was amazing to watch how do you analyze a problem and solved it. Please make more videos like this one

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

    Read that article just a couple of days before, now I am super saiyan🔥🔥🔥

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

    Ciao Alberto,
    Thank you for this class.
    I really appreciate it.
    Thiago Pacifico

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

    Thanks Alberto, Buon Anno

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

    Another great video that takes the complex and makes it seem simple and understandable. Thanks Alberto!

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

    Amazing. Thanks for the class. Cheers.

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

    Thanks to help us to improve with each video.

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

    Great video, thanks a lot Alberto!! I had a similar issue and now the performance is so much better and faster.

  • @FredericLEGUEN-Excel
    @FredericLEGUEN-Excel 2 года назад +1

    Wow! Impressive course to learn how to optimize a measure 👏👏👏 But I don't understand with you embedded DISTINCTCOUNT inside CALCULATE (and only one argument in calculate)

  • @MoonShine-bs6cl
    @MoonShine-bs6cl Год назад

    How do i get the date column from fact table to another table which is having only many to many relationship on both the tables, how do i solve this as payment dates have multiple transactions and i have to map with policy number to take the average days

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

    Hello sir,
    I have three tables customers, materials, invoices . There is no direct relationship between customers, materials but through invoice. How can I work on customer attributes with materials please?? Help

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

    Excellent video as always

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

    Very educative! Thank you Sir.

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

    You are the best Alberto !!!

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

    I have a quick question. [@PO] is created using ADDCOLUMNS and this column does not have any data lineage. So how this column in being used as a filter in the vTable inside CALCULATE. Is it the case that this column is being ignored while the vTable is used as a filter.

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

      That column is ignored for the filter context because it does not have any data lineage, indeed.

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

    What a convincing example! Thanks for the video! :)

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

    Best explanation as always! Keep up the good work 👍

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

    Awesome video. Thank you for the knowledge share. One unrelated question. What keyboard do you use? lol

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

      You can find it here: www.sqlbi.com/blog/alberto/2021/02/14/on-my-recording-gear/

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

    Like the use of subtracting test measure from original measure to validate results.

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

    Wonderful! Thank you very much.

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

    I’d like to see more debugging videos! Nice job!

  • @SandipanSarkar-c8v
    @SandipanSarkar-c8v 6 месяцев назад +1

    Finished watching

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

    Great video Alberto! I believe it will be very appreciated if you would consider to make more videos with popular incorrect functions usage and obvious (for you, not us!) solutions. I nominate FILTER function as a next example.

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

    Thank you Mr.Alberto. one question, can we further reduce the code by avoiding second variable vSum by putting ( "@PO" > 2 ) in calculate function in Addcolums.
    I'm new to DAX, sorry if question is not valid ☺️.

    • @wilsonman8661
      @wilsonman8661 11 месяцев назад

      Functionally, yes. However, variables also help with code readability (both for other people and for future you).

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

    If we use extended columns in Vendor table (not in Order table), would addcolumns still work?

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

    Very useful, thanks for this tip!

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

    Thank you

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

    Superb...

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

    using SUMMARIZE/ADDCOLUMNS to replace an olden full SUMMARIZE is always a good idea. As far as I remember this was one of the first optimizing hint you and Marco gave us way back. However, doesn't the presence of DISTINCTCOUNT play a substantial role in the suboptimal performance in this case. It sort of inflates the performance result when used with SUMMARIZE doing the aggregations instead of ADDCOLUMNS?

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

      There are several cases where SUMMARIZE does not expose performance issues, such as the case of a simple SUM. However, you should evaluate case-by-case, so as a rule of thumb avoiding it is simpler.

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

      Or better use SUMMARIZECOLUMNS

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

      @@NareshOjha I guess that SUMMARIZECOLUMS will not work because it doesn't support context transition.

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

    Can you make a video on Dedicated and Shared Capacity in power-bi along with the difference.. Which will make life easier for most of the org and even developers like me.. 😊

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

    13:09 - As you have seen, that was an easy one.

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

    Insano @powerbinareal