List.Generate in Power Query - Tutorial with Easy Examples

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • This video explains how List.Generate works in Power Query. You will see examples for basic number sequences, examples involving multiple variables and lastly series returning text values.
    WRITTEN BLOGPOST:
    gorilla.bi/power-query/list-g...
    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/rickmaurinus.
    Website: gorilla.bi
    SUBSCRIBE TO MY CHANNEL
    czcams.com/users/bigorilla?sub_con...
    LET'S CONNECT:
    Blog: gorilla.bi
    Facebook: / bigorilla
    Twitter: / rickmaurinus
    LinkedIn: / rickmaurinus
    Thank you for your support!
    Chapters:
    00:00 Introduction
    00:48 List.Generate Basic Number Series
    08:26 List.Generate Fibonacci Sequence
    14:14 List.Generate Sequence with Factorials
    17:41 List.Generate Return Text Values
    #ListGenerate #PowerQuery #BIGorilla

Komentáře • 45

  • @BIGorilla
    @BIGorilla  Před 9 měsíci +1

    To learn more about the syntax of List.Generate, make sure to check out: powerquery.how/list-generate/

  • @RobertoStaltari
    @RobertoStaltari Před rokem +3

    This is the one and only video where you can understand List.Generate. Microsoft documentation is surprisingly bare, inadequate to explain this complex and powerful function. Thanks Rick.

  • @joaorataoo
    @joaorataoo Před rokem +1

    I loved the calm and clear way you explained.
    Excellent!
    Thank you very much!

  • @CAKimberlyLewis
    @CAKimberlyLewis Před 2 lety +2

    Truly appreciate the written blog post partner to the video! Truly helpful to have them both! I know the written posts take so much time, but they are very appreciated.

    • @BIGorilla
      @BIGorilla  Před 2 lety +1

      Thank you so much Kimberly for your kind words. I know this function was a tough cooky for me to understand and hopefully my research gives you a kickstart.
      Keep crushing it,
      Rick

  • @vaibhavsrivastava7196
    @vaibhavsrivastava7196 Před 4 měsíci

    Thanks Rick clarifying this in calm and easy way.

  • @flamethrower5320
    @flamethrower5320 Před rokem

    Thank you for the blog and video, really appreciate it.

  • @vashisht1
    @vashisht1 Před 2 lety +1

    Thank you Rick for explaining List.Generate function in depth....love it cheers

  • @samirvaghasiya9918
    @samirvaghasiya9918 Před 7 měsíci +1

    Extremely useful video. Thanks

  • @JanBolhuis
    @JanBolhuis Před rokem +1

    Great video and explanation. Thank you.

  • @stewart5136
    @stewart5136 Před rokem

    Almost gave up on PQ until I saw this - fantastic and very powerful! Thank you. Subscribed and looking forward to watching your videos. 👍👍

    • @BIGorilla
      @BIGorilla  Před rokem

      Awesome. And thank you, welcome aboard!👏

  • @suki9860
    @suki9860 Před 2 lety

    Elegant, Elegant, Elegant! Simply magic, Rick! Thanks!

  • @isidrebague3659
    @isidrebague3659 Před 2 lety +1

    Simply great. Thansk for sharing

  • @vinayak254
    @vinayak254 Před rokem

    Great one sir !!. Thank you

  • @odel_leal
    @odel_leal Před rokem

    Súper interesting your video. Thank you.

  • @wayneedmondson1065
    @wayneedmondson1065 Před 2 lety

    Awesome! Just found your channel and subscribed. Looking forward to learning more. Thumbs up!!

  • @tonyagamata2874
    @tonyagamata2874 Před 2 lety +1

    Thanks! I'm still learning PBI and currently having a roadblock on a report I'm working on. I'll definitely utilise this function cos it might get me somewhere and see how it goes.
    Muchas gracias !!!

    • @BIGorilla
      @BIGorilla  Před 2 lety +1

      Glad to hear that. It's an advanced function but with some examples I hope you'll manage. 😁

    • @tonyagamata2874
      @tonyagamata2874 Před 2 lety

      Don't worry @@BIGorilla, the logic and the examples were clearly explained in your vid👍🏾
      Thanks again!

  • @rajanidumpa9834
    @rajanidumpa9834 Před rokem

    Thanks for sharing the video. I have one question though, I am unable to schedule refresh with the current code. Can you please help me here, on what do I change to schedule refresh on service.

  • @rrrraaaacccc80
    @rrrraaaacccc80 Před rokem

    Excellent 💯👍

  • @nguyenchitrung8809
    @nguyenchitrung8809 Před 8 měsíci

    Thanks you

  • @user-yo2nb4ry7i
    @user-yo2nb4ry7i Před 4 měsíci

    Хороший контент. Спасибо.

  • @fajnefajne4339
    @fajnefajne4339 Před 2 lety

    This video is luxurious. Thank you very much. :-)

  • @julie_chen
    @julie_chen Před rokem

    Saved it !

  • @fahadea1
    @fahadea1 Před 7 měsíci

    Genius 😮

  • @ThepExcel
    @ThepExcel Před 2 lety +1

    Nice tutorial

  • @iankr
    @iankr Před 2 lety +1

    Thanks.
    In the Fibonacci example, why are the x and y sometimes enclosed in [ ] and sometimes they are not?

    • @BIGorilla
      @BIGorilla  Před 2 lety

      In one part it's the opening of a record and in the other part the brackets reference the variable that was defined earlier. Hope that helps :)

  • @karimallahwala7022
    @karimallahwala7022 Před rokem

    Very nice und helpful content

  • @teaking1981
    @teaking1981 Před 2 lety

    Amazing video showing list generate its a function that isnt well documented so appreciate the video, on the part with factorial numbers should the selector for "Y" also be Y=[X]=1 as on that loop it would have been using X as the initial value so you get the duplicate line with 1? Im only asking to try to understand the function :) I really enjoyed the video

    • @BIGorilla
      @BIGorilla  Před 2 lety +1

      Hi Glyn,
      That's a good point. You could improve the code by starting with Y = 1, and starting with x = 2. This would mean that the first returned result is Y = 1. The next value then is the Number.Factorial( 2), so for X = 2. With that change, the result would be a list showing:
      {1, 2, 6, 24, 120, 720, 5040, 40320, 362880 }
      Or the full code:
      = List.Generate(
      () => [x = 2, y = 1], // x = increasing series, y = factorial
      each [x]

    • @teaking1981
      @teaking1981 Před 2 lety +1

      @@BIGorilla brilliant thanks for the explanation!

  • @DinoAMAntunes
    @DinoAMAntunes Před rokem

    Hello Good Night, Can you share a video with a table with 100 rows and 3 columns for example, and you want to split that table in 10 sub-tables, automatically, and 10 new excel sheets. tks in advance.

  • @bn_ln
    @bn_ln Před 2 lety +1

    In the factorial example shouldn't it be y = Number.Factorial ( x ) ---ie. not [x] otherwise the two lists are not the same

  • @Fatemeh-tu1vc
    @Fatemeh-tu1vc Před 2 měsíci

    Hi there, I used your instruction but once I apply the changes it takes 20 hrs. so data be loaded and I have 1200000 rows of data. can you please help me out find the problem?