Working with AverageX and Summarize to create averages in DAX

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

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

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

    This is the best Virtual table demo I've used and got me over the hump. I've been fighting this problem by burdening my model with helper tables in power query. This approach with DAX will level me up to take advantage of measures and the correct row context. THANK YOU!

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

    Thank you Mitchell! The best video on TH-cam regarding the function.

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

    Best Dax video I have ever watched bar none! You are a born educator. Bravo.

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

    Many thanks for this! You have a talent in explaining complex things so well!! Please keep them coming!

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

    Love your style Mitchell!! Thank you so much for these videos & great explanations. Hungry for more :). Greetings from Czech Republic / Europe. Martina

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

      This is great feedback Martina, thank you so much :)

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

    Thank you for another great video Mitchell. I am really fond of your teaching style, the way you lay it out all in a nice and simple way. It sure sticks to the brain. Looking forward to watching more of it.

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

    This is awesome! I've been looking at how to show month average by year for a bit and I can't understand how everything works together. You just explained everything clearly, not just the average but the use of multiple useful combinations that can be applied in complicated calculation. Thanks!!!

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

    Thank you so much for the explanation! This is the best video I´ve ever watch about DAX, thank you again!!

  • @zubair242
    @zubair242 3 ปีที่แล้ว +2

    Thank you Mitchell for such an awesome video. I have learnt a lot from your teachings at Pragmatic Works. Your explanations are very easy to understand. You can explain difficult topics very easily.

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

    Looking forward to see future video regarding SUMMARIZECOLUMNS vs SUMMARIZE in DAX.

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

    Thank you very much, you explain really easily and it's easy to follow you and put into practice. I cannot thank you enough!!!

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

    The best when it comes to DAX, thanks Mitchell.

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

    Such an amazing explanation!! Very very detailed! Loved it!!🎉

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

    This was exactly what I needed, you’re great Mitchell!

  • @608er
    @608er ปีที่แล้ว

    Your explanations are always on point.

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

    I'm follow you in pragmatic work !!! can't wait too subscribed this Chanel # love from Ethiopia

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

    22' very well spent. Among other things, I appreciated the note on SUMMARIZECOLUMNS interaction of the context. Thanks Mitchell, I just subscribed your channel

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

    Well done. Look forward to your other videos.

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

      Thank you! Glad you enjoyed the video.

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

    You're a life saver.. this is exactly what I needed for BI report.. thank you very much Kind Master 😊😊😊

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

    Thanks for this, it helped me reason through a similar challenge I was facing.

  • @edjabouvincent7369
    @edjabouvincent7369 9 หลายเดือนก่อน

    Amazing and fantastic explanation!

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

    Thank you for the step by step explanation. Really helpful to understand the logic behind the solution, many thanks.

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

    Great video and thanks for taking the time to explain everything in detail. I know this video is a couple years old. Is there a way to not return a 3 month average for the first 2 rows where there is not enough previous data to give 3 month average?

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

    very well explained! I like the way you split the DAX formula into sections

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

      Thank you Pawel, I'm glad you enjoyed it and found it helpful!

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

    Excellent lesson Mitchell...not sure if you have gotten yet to the promised video on the difference between "summarize" and "summarizecolumns"

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

    it would be great to get the files that you are using within your videos. according to me you are the one of the best in terms of teaching the background of the functions in daX

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

    Great video and a really good teaching style, thanks!

  • @Alma-im4qk
    @Alma-im4qk ปีที่แล้ว

    Thank you so much. I was struggling with the same problem and you solve it.

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

    Great breakdown, thanks so much! Easy to understand. Thanks again!

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

    Thank you for the video! If there were no sales in some month, then how to calculate the average value correctly?

  • @dan-is6mc
    @dan-is6mc ปีที่แล้ว

    Helped me a lot. Thanks for the video!

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

    This was a great tutorial! You really took time to go through every line of code & explain. Would you ever consider doing an average by week? Again thank you for posting this :)

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

    Thanks for your great teaching

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

    great explanation, really loved this:)

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

    Excellent teaching style and awesome video.

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

    great explanations ... thanks for your efforts to help us, to guide us, to teach us :)

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

    Thanks. What instead of total sales, we had to count the number of tickets per month and then average them per year pls?

  • @krishj8011
    @krishj8011 9 หลายเดือนก่อน

    great tutorial. very useful... thanks.

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

    Hi, I congratulate you for the really interesting topic. I would like to ask you a question. How can I apply this formula create with DAX with Excel Power Query that uses M language? Tnx for your reply!

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

    Thanks Man. You made me understand filter and Row context!

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

      Hey Mwangi, thanks for the feedback. I'm glad the video helped!

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

    how would this work if one of your months were blank? would the averageX remove the null before the summarize?

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

    I know I am 2 years behind 😂😂😂. But I want to see everything you touch, because everything you touch turns to golden knowledge. 😂😂 maybe co-pilot vs. Dax video

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

    Good explanation , please share the practice dataset

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

    Terrific video!!

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

    The author is a genius
    Talk for 20 minutes about what you can say in 5 minutes. This requires talent))

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

      You made me laugh out loud. I am pretty sure this is not a complement, but I still like it :)

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

    Hi @Mitchell, this is Raj from India. I need to achieve some scenario.
    Let us assume 5 products were sold in the last month and 2 of them were sold in current month also along with
    other products. Now, I need to exclude those 2 products and retrieve the count of last month sold products as 3 instead of 5.
    eg: P1, P2, P3, P4 & P5 were sold in the last month. P1, P2, P6 & P7 were sold in current month.
    Now I need to get the count of last month sold products but not this month as 3(only P3, P4 & P5 should be counted).
    Please help me write the DAX measure code on this. Thanks in advance.

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

    Hi, I know you mentioned values at the beginning, but is there any advantage to using Summarize?
    I would just have used AVERAGEX( VALUES( Calendar [ MMM-YYYY] ) , [Total Sales] ) , I find Summarize a bit hard,
    but have found it useful in reducing the rows of a table that need to be iterated over, so in a a total sales iterate over the sales table summarized by the dim product , customer etc.

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

    MItchell... great video... Qucik question, how would do you obtain the rolling average? Do you change the daysinperiod to -12months? Thanks

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

    How can we look at rolling averages over transactions instead of dates?

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

    Hi Thanks for your videos. I would like to ask a question if I may. I would be interested in how RLS works with SSAS live connection and import mode. Is there a chance you can address this topic in a video?
    best regards and stay safe

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

    Excellent!

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

    I would like to have a video clip about totalmtd, totalqtd and TOTALYTD. I always have a problem with totalmtd and totalqtd. It appears that it is related to the date table is end on the 31st Dec 2021 while I am working on the mtd for Aug... Wonder how to solve the problem

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

    Can you make a video talking about the differences between SUMMARIZE() and GROUPBY()?

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

    Its a gr8 video, why you are not making more videos

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

    Hi Mitchell - Is there old videos have been deleted?

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

    Hey thanks for the explanation, how do the same with an id column instead of date as you did it with datesinperoid i want to have an average of the last 3 previous values using my id column that is unique in my table and is consecutive like an index column

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

    Awesome video sir Mitchell, and I think if you do others videos about DAX where you use virtual Tables inside formulas it will be great because in DAX to take further steps after understanding evaluation context
    is to know how to create measure with using virtual tables.
    after all it's great what you do sir! thanks

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

      Thanks for watching and I'm glad you found this video helpful!

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

    Please come back here.... where are you

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

    Hi Mitchell, thanks for the nice Video, just was wondering how can we calculate the moving average for series of data in sequence of one minute or 5 minute, e.g. for a day have 1440 rows, appreciate your help.

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

    Hi, how to get the PBIX file for this video? Thanks.

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

    This tips is really well

  • @VIJAY-pd4jt
    @VIJAY-pd4jt 2 ปีที่แล้ว

    Great Sir. Thanx a lot

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

    One thing to note, that if in the expression for AVERAGEX you use expression (e.g. SUM('Sales'[Price]) ) it will not give you result you expect.
    It has to be a measure with exactly the same code (Total Sales = SUM('Sales'[Price]) ).

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

      Very good observation! You are correct, X functions create a row context and since we are iterating over the date table we need to move that row filter into the filter context (Context Transition). Calling the calculated measure forces this transition to occur. We could write out the expression sum of sales amount but we would need to wrap it in a calculate statement like this: calculate(sum(salesamount)).

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

      @@MitchellPearson thanks for clarification, I understand why that happens now.
      Had quite a bit of WTF moments while trying to understand why my measure was not working and was always equal to just total SUM.

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

    You are the GOAT!!!

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

    This was a great explanation 👏

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

      Not sure if you guys gives a damn but if you guys are bored like me during the covid times you can watch all the new series on instaflixxer. Have been binge watching with my girlfriend for the last couple of months :)

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

      @Allen Ray yea, been using InstaFlixxer for since december myself :)

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

    how to calculate monthly average include months with no record, in a matrix at Year and quarter levels

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

    Great video! Thxs ; )

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

    Great demo...thank you

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

    You rock sir👍

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

    Excellent,Thanks

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

    'X' functions are like SUMPRODUCT in Excel, if I am not wrong to put it simply.

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

    Nice video as always.
    I'm struggling with time and date functions. I'll email you a scenario if that's ok? What would be the best way to contact you

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

    Does not work for me.