Understanding List Sort in Power Query

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 25

  • @BIGorilla
    @BIGorilla  Рік тому

    See more examples and copy the code at my blog:
    gorilla.bi/power-query/how-list-sort-works-in-m/
    And for more on the List.Sort syntax, check out: powerquery.how/list-sort/

  • @raitup00
    @raitup00 Рік тому +3

    I learn a lot of Power query with your videos!

    • @BIGorilla
      @BIGorilla  Рік тому

      Exactly what I’m hoping for. Really appreciate you taking the effort to comment Raymundo 🙏

  • @sindibad602
    @sindibad602 3 дні тому

    Brilliant as usual 😊

  • @Ratnakumarwrites
    @Ratnakumarwrites Рік тому +1

    Thanks Rick learning from you is fun & intresting...

  • @ThepExcel
    @ThepExcel Рік тому

    wow, very great tutorial for me. learn a lot from this one

  • @williamarthur4801
    @williamarthur4801 Рік тому +1

    Not quite finished watching, but thanks for an afternoon of rabbit holes, read your article on coalesce,
    and went down a few paths that I thought of on the way, including zipping dates and years and stuff.

    • @BIGorilla
      @BIGorilla  Рік тому +1

      The path down the rabbit 🐇 hole goes as deep as you go William 😎

  • @PaweW-td3wt
    @PaweW-td3wt Рік тому +1

    Very useful Thank You!

  • @teigenxayden
    @teigenxayden 5 місяців тому

    thankx for your share!

  • @aart_analyst
    @aart_analyst Рік тому +1

    Awesome as usual

    • @BIGorilla
      @BIGorilla  Рік тому

      Highly appreciated Lester. Some fun tricks in here 🔥🔥

  • @GosCee
    @GosCee Рік тому +1

    Cool! Thanks, Rick.

  • @Bondoz007
    @Bondoz007 Рік тому

    That was great = thanks Rick. So just to be clear, you are creating this columns instead of the "sort" columns we need to made labels and dates sort correctly in data visuals (you called them helper columns) - correct. So I'm guessing once one has created the List.Sort column, one can remove the original column the sort is based on, and just use the List.Sort column going forward? So the model will run better/less unnecessary data columns?

  • @josh_excel
    @josh_excel Рік тому

    Very nice.

  • @MrMoustafaaziz
    @MrMoustafaaziz Рік тому

    How can I maintain the original table data sort in PowerQery? Could you help please

    • @BIGorilla
      @BIGorilla  Рік тому

      This function only sorts lists. For tables you need Table.Sort.
      Power query keeps the table as it comes in if you don’t perform major operations. In case it does change you could either:
      - use Table.Buffer to load the table into memory
      - add an index column and sort your table by that column in the last step

  • @chengwang411
    @chengwang411 Рік тому

    quite interesting :)

  • @ExcelInstructor
    @ExcelInstructor Рік тому

    GReat video :)

    • @BIGorilla
      @BIGorilla  Рік тому

      That's great to hear. I tried to give a variety of examples here to get the idea. Feel free to have a look at my written blog if you'd be interested in learning more 🙏 Cheers, Rick

  • @williamarthur4801
    @williamarthur4801 Рік тому

    I think you should do a video on when to use List.transform with functions like Number.From(_) ,
    I always think I have to if the function being used does not have the word list in it.
    List.Sort( List.Transform ( {"1", "10", "2", "22" , "11" } , (_)=> Number.From(_)) )
    Which obviously does change the data type. Gets a bit confusing, keep up the good work, REALLY like your COMPUTERGAGA vid on list.generate. 😊😊