List.Accumulate in Power Query with Practical Examples

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

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

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

    Check out our newly launched M Language course ↗ - goodly.co.in/learn-m-powerquery/

  • @BrainyBrunetteBarbie
    @BrainyBrunetteBarbie 2 года назад +12

    As an accountant I love that you used “closing balance” in your example.
    ALSO, it would not be a Goodly video without “Please take a look”! That phrase always makes me smile.

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад +5

      *I am pleased that you took a look* 😉

  • @karimallahwala7022
    @karimallahwala7022 2 года назад +8

    The Example „closing Balance“ was fantastic. It gave me so much opportunities for use this „List.accumulate“ Thank you so much. You lift my Powerquery-using-possibilties to another Dimension. Thank you so much. Really excellent and out-Standings Content you offer

  • @3Starsgamer34
    @3Starsgamer34 2 года назад +5

    Wonderful. You opened the way of looping in PQ.
    I think the list need to be wrapped in List. Distinct to get unique values for trainings

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад +1

      Yes correct I missed that in the video😬

  • @iancoify
    @iancoify 2 года назад +3

    holy moly, I am blessed to have found you. Severely underrated channel.

  • @zahoorsarbandi2982
    @zahoorsarbandi2982 Год назад +2

    Absolutely amazing! Believe me this is the single video available on internet which has explained the List.Accumulate so easily and perfectly that only this lecture is sufficient to watch for complete understanding for this difficult function. Well Done!

  • @hubersoncunha
    @hubersoncunha Месяц назад

    Que aula top, muita coisa que eu não sabia que dava pra fazer utilizando o List.Accumulate! Parabéns.

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

    Sometimes i hate you cos you make power query look so easy and sometimes i love you because you make power query so much easier. Great job sir.

  • @stevegarside5026
    @stevegarside5026 11 месяцев назад

    Genesis! The method used to create multiple columns within a table is brilliant! Thanks for taking the time to share your knowledge 👏

  • @viviennesmithdorf3244
    @viviennesmithdorf3244 10 месяцев назад

    You are an EXCELLENT teacher, Chandeep! 😊 Thank you for making this video and making it freely available.

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

    dear chandeep, your way of explaining the issues is so clear, makes me think that pq is no more a nightmare. thank you…

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

    Thank you! You've been the first one to teach this particular function with clear explanations. You have no idea how helpful your videos are.

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

      You have no idea how much your comment means to me :)

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

    Thanks! Great stuff. Demystifying Power Query. Keep up the amazing work.

  • @adrianhoraciosantanavaldes1908
    @adrianhoraciosantanavaldes1908 10 месяцев назад

    this is awesome, i love it, used it already a couple of times, but where i think can be used but haven't been able to is if i want to split into separate columns multiple dynamically, i have many data sets where the desired output would be a "main column" to their "related value", lets say for simplicity you have 4 columns, the "main column" where you have distinct values {lenght, depth, width} but they are not unique values; the next columns would be "mm.1" for the first value in mm, "mm.2" for the second value in mm, "mm.3" for the third value in mm, etc and the same thing for "in" and "ft", the table originally starts as "main column", "mm", "in", "ft". what i do normally is i group by the first column, the "main column" and then manually split the other columns into different columns, getting the desired output. now in my data its normally around the 15 columns ("mm", "in", "ft", "gauss", etc) and to do 15 times that is quite an issue. what this video gave me the idea was to have as seed the grouped table, and from there start to split. up till the present i haven't been able to make it work using the ideas of this video, anything i might be missing? thank you if you read this far and are willing to help btw

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

    Hi Chandeep, after weeks of trying I finally understand List.Accumulate! Thank you so much. The clarity of your List.Accumulate explanations is amazing.

  • @jist6953
    @jist6953 5 месяцев назад

    This is so advanced, it is beyond most of us. Watching over 5 different sessions, I think I can finally follow through the matrix.
    Wow

  • @HachiAdachi
    @HachiAdachi 2 года назад +1

    🤯 I feel so powerful now with List.Accumulate in my toolbox! Thank you, Chandeep! 👏

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

    Have seen many videos on list.accumulate. But none as clearly defined by you. Brilliant 👍🙂

  • @ShrikantPatil-x5h
    @ShrikantPatil-x5h 7 месяцев назад

    Chandeep, You are true rockstar. I feel blessed that I found your channel on youtube.. Keep rocking... 😊

  • @bodhanandannhattuvetty3179
    @bodhanandannhattuvetty3179 2 года назад +1

    You are a very good teacher. Thank you very much for explaining complex things in a simple way.

  • @ricardobunge5957
    @ricardobunge5957 2 года назад +5

    Hi Chandeep - brilliant as usual! Very much like the graduated approach - makes it very easy to understand the complex examples. I can see many potential applications in our current portfolio... Thanks again!

  • @sandipsoni4047
    @sandipsoni4047 Месяц назад

    Chandeep I really thanks for making such indepth video it clear list. Accumulate function concept

  • @jaybuddhadev3543
    @jaybuddhadev3543 10 месяцев назад

    this concept was really tough but the way you explained made it very very easy. Thanks a lot

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

    Magnificent!!!
    I just don't know what is more magnificent, if the function, or your way of explaining it!
    The way you explain is a gift.

  • @BillSzysz1
    @BillSzysz1 2 года назад +5

    Thanks for video, Chandeep 🙂
    I am impressed by the clarity of the explanation of difficult parts of the issue 👍

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

      Hi Bill. I am honoured to have you here.
      thank you!

  • @bugsdenis547
    @bugsdenis547 10 месяцев назад

    Nothing else than 😄 really usefull and well explained
    One detail a List.Distinct will avoid errors when a training has been done by multiple persons

  • @sentralorigin
    @sentralorigin 2 года назад +1

    @ 21:05 when you choose which table you want to add the columns to, how come you can't add it to "Source" since that's the table where we want the columns added to?

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

    Not just "absolutely gorgeous" but as well absolutely awesome! It took me quite a well to get a grip on this powerful PQ function (and still not mastered even) but your logical step by step approach makes it so easy. Thanks, Chandeep. I will definitely over my application but this time with an enlightened insight from goodly! 😀

  • @abbadq
    @abbadq 4 месяца назад

    Brilliant Chandeep, explained this complex technique with ease and such a simple way.
    Awesome video.

  • @jimfitch
    @jimfitch 2 года назад +1

    I’ve watched several tutorials on List.Accumulate. This is the best by far. Thank you, Chandeep.

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

    This is incredibly well explained. Thank you very much for. Is it possible to reflect a date (for example, when the training was completed) as a value instead of True or false? 25:58 Best regards Kjeld

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

    Great video, it has helped me a lot, but I wonder, if I have in my dataset many of these columns that I have to map, would I have to make a table duplicating the original? it will not be heavy for powerbi

  • @weav8060
    @weav8060 Месяц назад

    I used this to find the header row in messy files, looking for the row record that has the largest number of matches with a list of likely/expected column names... Comes up often in common mission-critical files 'compromised' header formats (starting location, multi-line, etc,)

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

    Hey Chandeep, great video and very well-explained as well, helped to understand "(a,b) => function" in power query. Would it be possible to simply use Text.Contains() when decinding for True/False? (Did not go through all the comments, maybe I missed this question). Great job!

  • @GosCee
    @GosCee 2 года назад +1

    Brilliant! Nicely done, Chandeep. Very well explained. I'm sure I'll find use for this immediately. Thank you very much.

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

    This is genius. Couldn't find anything like this in any textbook.

  • @pratapindian8606
    @pratapindian8606 5 месяцев назад

    Your videos are awesome. I have one problem sir. Please explain the reversal of the last example. For example if we have an OutputTable as our source and I want to concatenate column headers based on true or false values of each record. Complete reverse of this example. Thank you for your response.

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

    Really a great tutorial ! Thank you so much ! I’ m sure I will use in my job.

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

    Clear and thorough teaching. You're an excellent tutor. Thank YOU.

  • @user-gu8wb3ui5x
    @user-gu8wb3ui5x Год назад

    Your way of explaining this list.accumulate is simply awesome. This is very powerful function!!

  • @ryanschumacher5149
    @ryanschumacher5149 2 года назад +1

    Thank you so much for sharing! Your approach through this powerful and complex function was extremely helpful and educational. I really appreciate that you started with the basics and then proceeded into a "real world" example. I learned a lot! 💓

  • @sanjeevsoni6793
    @sanjeevsoni6793 2 года назад +1

    Great Goodly!!, Made simple to under List.Accumulate,

  • @amitk1208
    @amitk1208 2 года назад +1

    Your explanation is wonderful one can easily understand even Complex formula

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

    You are a great trainer!! Thank you for this easy to follow tutorial!❤❤❤❤❤

  • @excel-in-g
    @excel-in-g 2 года назад

    Love this. Great example. It's one of those functions that I find hard to grasp what I can do with it. I now understand it's a lot more then I imagined.

  • @pawewrona9749
    @pawewrona9749 2 года назад +11

    In this last exercise, when you create new columns, you could simply do TextContains(Training, TrainingName), and save yourself splitting, and then couple of iterations

    • @KamranMumtazAhmed
      @KamranMumtazAhmed 9 месяцев назад +3

      Thank you for the comment. I tried your idea and the code became too small compared to what Chandeep taught in the video.
      let
      Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
      Result = List.Accumulate(TL, Source, (s,c) => Table.AddColumn(s,c, each Text.Contains([Training], c)))
      in
      Result
      Moreover, I took another precaution on the TainingList side and used the List.Distinct to remove duplication in the header names.

  • @sachin.tandon
    @sachin.tandon 2 года назад

    Fantastic example, and very advanced! If I were to provide "critical feedback" to get you from a Gold Star to a Platinum Star, on par with Alberto Ferrari et all, it would be to spell out some of the "sometimes' hastily given, "end of sentence" explanations. I think you did it once or twice. Otherwise, I love your channel, and I love the ideas that you come up with. Great work!

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz 8 месяцев назад

    I always watch this video. In your original table no two people take the same training class. For instance, Rechet takes Power Query and Excel, but no other individual takes these two trainings; so when you create a list of all the training classes from the Training field you have a list of unique training classes. However if for example CJ trained in Trading and Excel then your list would have two instances of Excel. When this happens how do you get your list to have distinct values? In other words, how do you remove duplicates from a list?

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

    13:18 Could you please let me know what the last video was - where you gave that problem?
    Thanks.

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

      goodly.co.in/create-dynamic-columns-power-query/

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

    Looking forward to watching this, I've used it to create running totals but never really understood quite how it works.. I may have questions.. Enjoyed Promoting two rows to Headers, TableInsertRows could do with it's own show.
    Richard.

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz 8 месяцев назад

    I watched this video again. Chandeep is that dude. My goodness he has a talent for providing instruction.

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

    This is insane! 🙌🏻🙌🏻 You are a god ! Thank you so much.

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

    Thanks your Tutorial Power Query
    Special thanks for sample file
    I Can step by step with sample file
    thanks very much

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

    Thank you so much Goodly for this masterpiece 😊

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

    Thanks Chandeep :)
    I just added a List.Sort on AllTrainings list to order the courses alphabetically, easier to read :)

  • @sue_bayes
    @sue_bayes 2 года назад +1

    Totally enjoyable, thank you Chandeep. Also using the Closing Balance analogy really helped with the explanation.😊

  • @rond9222
    @rond9222 2 года назад +1

    Great video!
    One question, how would you handle this is 2 people took the same training class - let's say someone else took the Excel class too?

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

      I'd just use list.distinct while creating a list. Rest remains the same

  • @enocharthur4322
    @enocharthur4322 2 года назад +1

    You're a really really great tutor!!!

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

    Q- in ur example of mom and dad had same training events would this still work? Or do I need to do a list mandated with unique items ?

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

    I learnt a lot from you. Thank you Chandeep!

  • @janesheng7113
    @janesheng7113 18 дней назад

    This is amazing. Thank you!❤

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

    Hi,
    Excellent introduction to List.Accumulate. I love your videos.
    How can I handle the case where a TrainingName occurs in more than one row? Add Column will fail.
    eg.
    Name Training
    Rehet Power Query, Excel
    CJ Trading, Excel

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад +1

      While creating a list for training names, surround that with List.Distinct

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

      @@GoodlyChandeep Thanks. It worked.
      Simple solution.
      What I am not able to wrap my head around is that AddColumn is called for each row then how it works if that column is already there?

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

    Absolutely is brilliant 👏. Best way to show the matrix .

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

    the quality of these videos are mind blowing.

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz Год назад

    You sir are a phenomenal instructor.

  • @pavelfilippov-nt2ni
    @pavelfilippov-nt2ni 7 месяцев назад

    Thank you for lesson! Marvelous!

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

    Amazing. Brilliant stuff! Will take me a few watches to learn for sure!

  • @learningmadesimple347
    @learningmadesimple347 2 года назад +1

    Love it love it love it... great job..

  • @kesavaraju9652
    @kesavaraju9652 2 года назад +1

    Nice Content really, Can we calculate Running Total with List.Accumulate function?

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

    Awesome examples. You are now a go to person for me to help solve problems!

  • @seanys
    @seanys 6 месяцев назад +1

    I’ve had university lecturers with teaching qualifications and PhDs in their field that don’t teach as well as Chandeep.

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

      Oh my god.. thank you so much 💗

  • @TheTommySp
    @TheTommySp 2 месяца назад +1

    "I'm gonna say :hey!..you are the best

  • @mnowako
    @mnowako 2 года назад +1

    What an amazing video. Hats off! Thanks a lot!

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

    Thank you for the great explanations.

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

    Great vid! Hey is there a similar function for lists going horizontal (so for a (part of) rows)?

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

    Thank you! Brilliant and useful as usual!

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

    AWESOME! Thanks!
    Closing Balance is a great sample!

  • @QasimAli-gy3nb
    @QasimAli-gy3nb 2 года назад

    You really really really knock it out chandeep.

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

    Great teacher...takes time to break things down.

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

    I’m going to have to watch this a few times!! Nice work Chandeep!!

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

    great sir learned a lot .I working on weighted average cost .I think this will solve my problem.

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

    You are Amazing

  • @malchicken
    @malchicken 2 года назад +1

    So helpful ^^, thank you 🙏.

  • @ViktorSamosiuk-wu5fq
    @ViktorSamosiuk-wu5fq 8 месяцев назад

    so great tutorial!! Thank you so much!

  • @nicopicco
    @nicopicco 2 года назад +1

    this is like the reduce() function on JavaScript. Interesting how this also uses arrow functions like the latest JS

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

    This problem hss now been resolved but I don't know why?
    Hi, I was doing quite well up to list.combine, whch just took me back to where I'd started ie
    Power query , Fashion
    Training
    Fashion , Consulting . etc.
    Rather than ;
    Power query,
    Training,
    Fashion, etc
    Have I made an error?
    List.Combine( List.Transform( List , (_)=> Text.Split( _ , ", " ) ) )
    I've read the docs and can see this is not what its supposed to do any thoughts?
    Richard.

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

    Amazing function and fantastic explanation

  • @dirkstaszak4838
    @dirkstaszak4838 2 года назад +1

    Oh man nice one again. 👍

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

    thank you Chandeep i m grateful

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

    WOW Chandeep, Excelente! lo haces ver tan sencillo! me gustaría ver las otras diferentes soluciones que comentabas al principio del video. Un cordial saludo!

  • @darwisyb
    @darwisyb 7 месяцев назад

    Thanks.i thought i need watch your video more :)

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

    Thanks a Lot sir
    I will try to used in Financial Area I need it

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

    great video. do you have video that shows how I could accomplish the following? I have a list of 4 values. I need to turn that into a list of every possible combination. For example: if the original list is apple, banana, grape, pear. A new list is created and for each row it would contain a unique combination of the 4 original list items separated by commas. so the first row might show banana, apple, grape, pear.................. next row in the list might show grape, apple, banana, pear............ next grape, banana, apple pear..... etc. Thanks so much for the great content.

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

    In the third argument for state and current, is there any other functions we can use as accumulator?

  • @krzysiekbanach3737
    @krzysiekbanach3737 2 года назад +1

    Just WOW!!!! :D Thanks a lot!!!

  • @newvision7931
    @newvision7931 7 месяцев назад

    I combine the 2 text, but i want 2nd text should start from second line , is it possible

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

    Hey Chandeep. Nice tut.
    I have a question though: if I wanted to split each row of a column by two different delimiters that show up in each row several times ( repeatedly). How do I do it using List.Accummulate?
    For e.g.: delimiter1"text...text"delimiter2
    Delimiter1'text...text"delimiter2
    Etc

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

      If the delimiters are same use text.split

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

      @@chandeepchhabra they are not.
      1 row of data is like:
      $text1#
      $text2#
      $text3#
      And son
      Then
      2 row of data
      .....
      Where $ and # are the delimiters for example

    • @chandeepchhabra
      @chandeepchhabra 2 года назад +1

      @@erivaldolopes632 use text.betweendelimiters

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

    Absolutely amazing !!!!!

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

    Excellent 💯👍👏

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

    Aweshome!!! Amazing!!