Ranking within a Group with Power Query

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

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

  • @benhalicki9749
    @benhalicki9749 4 года назад +3

    Awesome thank you! Appreciate explaining this in under 20 minutes as well, about time someone kept it short and sweet :)

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

    Super .. thank you

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

    Hey just want to say thanks a mil for this simple and eloquent solution to the rank within group problem. I've ecountered this so many times in the past few years and this has got to be the best solution I've come across.

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

      You’re welcome! Feel free to subscribe to my channel as there’s more of these type of videos get published weekly!

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

    This was explained so well, thank you so much! I saw a lot of other Excel tips and tricks on this that were so much more complicated. This was awesome!

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

      Glad it was helpful! Thanks for the comment!

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

    Very well explained, thanks for this!

  • @wayneedmondson1065
    @wayneedmondson1065 4 года назад

    Hi Doug.. excellent.. works like a charm. Thanks for this tip.. very handy! Thumbs up!!

    • @DougHExcel
      @DougHExcel  4 года назад +1

      Hey Wayne...Great to hear it worked for you!

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

    Big thanks for this. I still have difficulties to understand how it works... but it works perfectly.

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

    Awesome video! Thank you so much for sharing

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

    Fantastic thank you so much. Great video!

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

      Hi Arné Van der Schyff, thanks for the comment!

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

    Wow! That's fantastic. Thanks a lot, Doug

  • @johnmccartan5205
    @johnmccartan5205 4 года назад

    Thanks for this, very helpful!

  • @thekingofspades44
    @thekingofspades44 9 месяцев назад

    Life saver, thanks!

  • @mohsenhs
    @mohsenhs 4 года назад

    So cool and nice and clear, very helpful, many thanks

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

    So easy to follow up, thank you:)

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

    This is Awesome ! thanks !

  • @dhunpagla3871
    @dhunpagla3871 4 года назад

    It helps....it more than help D....Thanks again for this awesome 👌 video ....keep sharing

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

    Hi, thank you for the video, this helped a lot. however, in my data, it looks like it has done the ranking correctly for the first 1000 data only. (my data has 60k rows). do you know the reason of this and how to solve it? thanks in advance.

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

      Also used to work great but now when I've done it on a huge table the original ranking goes wrong.

  • @Luciano_mp
    @Luciano_mp 4 года назад

    Thanks Doug!

  • @marcosgomes6110
    @marcosgomes6110 6 месяцев назад

    Very thanks man!!

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

    Thank you so much!

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

    Amazing, super... Thanks Alot Sir.

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

    Thanks so much!👍

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

      You're welcome!😀

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

      @@DougHExcel Hi, Struggled to get this to work at first as my rank was in the reverse order from you. A number I was ranking on had data type ABC 123 in the power query editor. Changed the data type to a whole number in the power query editor and it worked. Thanks again.

  • @ostwales
    @ostwales 13 дней назад

    thanks! - i was stuggling with what chatgpt was telling me!

    • @DougHExcel
      @DougHExcel  13 дней назад

      Beat the AI 🤣…Glad I could help!

  • @FernandoThivanka
    @FernandoThivanka 4 года назад

    This is genius!

    • @DougHExcel
      @DougHExcel  4 года назад

      Hi Anton Fernando, thanks for the comment!

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

    it works for me. But The first column (grouping column) has to be Text typed in order to make the sorting works inside the grouped table. I don't know why

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

      thanks a lot for this, i was getting frustrated.

  • @johnterlap2405
    @johnterlap2405 4 года назад

    Hi Doug, is there a way to have ties show as the same rank? I think it is called standard competitive rank?

    • @DougHExcel
      @DougHExcel  4 года назад

      Yes, this may give some insight ruclips.net/video/aHrlbNqAXT8/видео.html

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

    Many thanks Bro

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

    Thanks a lot for sharing. That saved my day!

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

    How would you account for a dense_rank?

  • @woo7374
    @woo7374 4 года назад

    Hi, thanks for the video! I'm trying to create a rank column by multiple groups(2~3). Seems your method doesn't apply to it. Looking forward to more advanced method. Thank you!

    • @DougHExcel
      @DougHExcel  4 года назад

      maybe one of these? ruclips.net/video/aHrlbNqAXT8/видео.html

  • @rahulshewale9206
    @rahulshewale9206 4 года назад

    Thank you sir

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

    This is awesome! However, when I try to left merge the Table7 results back onto (a duplicate of) the original data table using the equivalent of the Movie Name columns (formatted as Text), the expanded Rank column just goes 1, 2, 3 (formatted as Whole Number) in order of the original data table rows. What is going on here?? The merge preview shows the right Rank numbers. However, If I load Table7 to worksheet and then retrieve it with a new query, that merges fine.

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

    Thank you, but how can I rank in reverse order( ascending order)?

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

      It'll be like a reverse sort and I don't cover this BUT maybe one of the other video here will give an idea on other solutions that you can adjust to fit your use case
      ruclips.net/video/aHrlbNqAXT8/видео.html

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

    Great example. What if two had the same volume? The rank would be 1,1,,3,4,5. How is that handled?

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

      Other vids here may give some insights ruclips.net/video/aHrlbNqAXT8/видео.html

  • @tolik.shigarev
    @tolik.shigarev 4 года назад

    Спасибо) давно искал возможность добавить индексы по группам. Жаль, что на моих больших объёмах (более 8 млн. строк) этот способ очень долго грузит(( Есть ли способ сделать это побыстрее?

    • @DougHExcel
      @DougHExcel  4 года назад

      если исходные данные в формате CSV или TXT, это может быть быстрее

  • @tksrichy4479
    @tksrichy4479 4 года назад

    you sir desire more likes

    • @DougHExcel
      @DougHExcel  4 года назад

      Hi TKSRichy, thanks for the comment!

  • @uniQue_XL
    @uniQue_XL 4 года назад

    Hi Doug
    How are you?
    How can I connect you by email?

    • @DougHExcel
      @DougHExcel  4 года назад +1

      The about tab on my channel page will have contact info

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

    B E S T !!!

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

      Hi Dmytro Shtunder, thanks for the comment!

  • @imatzav
    @imatzav 8 месяцев назад

    This not exactly ranking because for equal values of Volumn, this method gives different ranking.

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

    hello, i want ro rank transaction dates as below based on invoices belonging to the each customer, how do i go about it.
    customer id invoice id transaction date RANKING
    A 1234 10/09/2022 1
    A 67585 09/09/2022 2
    B 7585 24/10/2022 1
    B 75805 26/10/2022 2
    C 489055 05/02/2022 - 1
    D 4855 06/02/2022 1

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

      See if any of these help Ranking Data
      ruclips.net/p/PL-n8f1cY_Qw9FBA42I7DYlnwX7RgBsbT6