How to Group By Maximum Value using Table.Max in Power Query

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024
  • In this post you learn how to retrieve a value from Grouped data in Power Query. It allows you to group your data and keep valuable information that would otherwise be lost.
    WRITTEN ARTICLE:
    gorilla.bi/pow...
    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/rick....
    SUBSCRIBE TO MY CHANNEL
    th-cam.com/users/bi...
    LET'S CONNECT:
    Blog: gorilla.bi
    Facebook: / bigorilla
    Twitter: / rickmaurinus
    LinkedIn: / rickmaurinus
    Thank you for your support!
    #PowerQuery #TableMax#BIGorilla

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

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

    To learn more about functions and syntax make sure to check out: powerquery.how/
    Enjoy!

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

      Hi , could you please make a video for cleaning a dataset but tables inside tables one under other one with different titles. Thank you.

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

    Thank you, I was struggling with the table concept of this, but this video helped me understand it.

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

    After re-watching I successfully got your approach to work. Thanks again.

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

    Buy that gorilla a banana. Or bunches of bananas! Thank you so much for this video. I searched high/low for help with keeping data for different lines of table with revision numbers, and yours was the one that made it click! Figuring this out for my model is a great win. Thanks again.

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

    What I like most about this video is that it is not only short and straight to the point but also has a cool Jesus statue in the background :D Amazing content and design! Thank you very much! This channel deserves much more views!

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

    Many thanks: I was looking for this solution and you have been able to explain it in a clear and simple way. Fabio from Italy

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

    great video, clear, short, useful, and much appreciated. i'll be following you from here on, having seen some of your other videos; and please continue the good work and postings. thanks.

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

      Great, it energizes me that someone found use of it. More videos coming soon!

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

      You prolly dont care but if you are bored like me during the covid times you can watch pretty much all the latest movies on instaflixxer. I've been binge watching with my brother for the last weeks =)

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

      @Jacob Jamari Yea, have been using InstaFlixxer for years myself :)

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

    Excellent tutorial about Group By and Table.Max function; thanks for sharing

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

      You're welcome! 🙏

  • @TigranHayrapetyan-oy2ds
    @TigranHayrapetyan-oy2ds 3 หลายเดือนก่อน

    Very elegant solution! Thank you for your work. Subscribed!

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

    Thanks, finally I understood how to use this Group By with other than Sum function. Just one suggestion- maybe you could use screen magnifier to make the video more visible. You are in my notification list))

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

      Hi Sergey, well done on the learning. I will definitely look into the size of the code in future videos. Thanks for pointing that out. Cheers, Rick

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

    Dit was ontzettend handig. Mijn dank is groot!

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

    This solution will go to one of my latest analysis machines. Thanks for sharing the knowledge.

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

      Sounds complex. Data crunching at its best!

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

    Great and very coll presented

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

    Awesome!! You saved my workday! I was looking for this solution.

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

    You are a genius, thank you so much for this video!

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

    Thank you a lot, it helped me

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

      🙏 fantastic!

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

    This was very good however i needed sum or max by date by sales person. I ended up having to burn three queries to get there. Max by date, max by Sales person then used your All Rows technique to e technique to expose the date on sales by person. Then did join on sales amount and date and got there. Very convoluted.

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

    Thank you very much. Helped a lot!

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

    Very nice! Will save me a lot of time this one. So far I've always done all rows => expand => filter by [ID] = [expandedID] and [maxvalue] = [expandedvalue], but this is so much faster, thank you! :-)

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

    Sir Rick, if sales number(max) repeats for two different name then table.max won't return both name and product details...maybe list.max can help....but I got stuck,,,

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

    This saved me a lot of time

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

    Hi BI Borilla, thank you for an amazing tutorial. :-)

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

    You are really champion, very well described, short and elaborative. I'm big of yours from now on.

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

    Thank you, you solve my big problem!

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

    thanks so much for sharing your knowledge!

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

    Great subject! Well explained! Thank you!

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

    great stuff! learnt it and used immediately

  • @ImranHussain-xv4se
    @ImranHussain-xv4se 2 ปีที่แล้ว

    Great video, it helped me to complete my assignment
    Thanks for uploading video

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

      Fantastic! What assignments do you take on?

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

    This was fantastic

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

    earned a sub from me homey
    great video, thanks!

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

      Great to have you on the channel!

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

    Very smooth

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

    Awesome. Thank you

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

    great, thx for the efforts

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

    Thanks!

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

    Congratulations

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

    Soo helpful. Thank you!

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

    Thanks a lot!!! If I could I´d buy you a pint! 😄

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

    Perfeito... era mesmo isto que eu procurava!!! obrigado pela ajuda :-)

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

    Excellent!

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

      Appreciate it! 🙋‍♂️

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

    Thanks! Do you know how could I bring the last 3 values? If I wanna a TOP3, how could I bring the 3 best sellers?

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

      Hi Lanna,
      It depends what you want to do. If you want to group and show the top 3 Sellers as comma separated values, you can use
      gorilla.bi/power-query/aggregate-text-values/
      Just max sure to filter that list to the List.Firstn( list, 3)
      Before combining it.
      Or you can add an index column to all grouped table objects, expand all, and filter on index

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

      @@BIGorilla Thank you!!! I'll try it.

  • @LamNguyen-op2kr
    @LamNguyen-op2kr 3 ปีที่แล้ว +1

    nice !

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

    Clever

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

    If i make merge between 2 tables and there are many dates , how can i return max & min date ????

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

    Great !! and Tks :-)

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

      Thanks Jadara, glad it helped!

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

    Actually is not Lisa...