List.Accumulate in Power Query with Practical Examples

Sdílet
Vložit
  • čas přidán 10. 07. 2024
  • Check out our newly launched M Language course ↗️ - goodly.co.in/learn-m-powerquery/
    All Answers - goodly.co.in/create-dynamic-c...
    Download file - goodly.co.in/wp-content/uploa...
    ===== ONLINE COURSES =====
    ✔️ Mastering DAX in Power BI -
    goodly.co.in/learn-dax-powerbi/
    ✔️ Power Query Course-
    goodly.co.in/learn-power-query/
    ✔️ Master Excel Step by Step-
    goodly.co.in/learn-excel/
    ✔️ Business Intelligence Dashboards-
    goodly.co.in/learn-excel-dash...
    ===== LINKS 🔗 =====
    Blog 📰 - www.goodly.co.in/blog/
    Corporate Training 👨‍🏫 - www.goodly.co.in/training/
    Need my help on a Project 💻- www.goodly.co.in/consulting/
    ===== CONTACT 🌐 =====
    Twitter - / chandeep2786
    LinkedIn - / chandeepchhabra
    Email - goodly.wordpress@gmail.com
    ===== CHAPTERS =====
    0:00 Intro
    0:40 Understanding the Syntax of List.Accumulate
    4:42 Simple Example
    9:39 Complicated Example
    13:11 Solution to Power Query Challange
    25:58 Shoutout!
    ===== WHO AM I? =====
    A lot of people think that my name is Goodly, it's NOT ;)
    My name is Chandeep. Goodly is my full-time venture where I share what I learn about Excel and Power BI.
    Please browse around, you'd find a ton of interesting videos that I have created :) Cheers!
    - - - - -
    Music By: "After The Fall"
    Track Name: "Tears Of Gaia"
    Published by: Chill Out Records
    - Source: goo.gl/fh3rEJ​
    Official After The Fall CZcams Channel Below
    czcams.com/channels/GQE.html...
    License: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
    Full license here: creativecommons.org/licenses
  • Věda a technologie

Komentáře • 221

  • @GoodlyChandeep
    @GoodlyChandeep  Před 8 měsíci +1

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

  • @ShrikantPatil-x5h
    @ShrikantPatil-x5h Před 6 dny

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

  • @BrainyBrunetteBarbie
    @BrainyBrunetteBarbie Před rokem +11

    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.

  • @RichardJones73
    @RichardJones73 Před měsícem

    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.

  • @iancoify
    @iancoify Před rokem +2

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

  • @3Starsgamer34
    @3Starsgamer34 Před rokem +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

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

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

  • @torkunc
    @torkunc Před 6 měsíci

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

  • @viviennesmithdorf3244
    @viviennesmithdorf3244 Před 3 měsíci

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

  • @karimallahwala7022
    @karimallahwala7022 Před rokem +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

  • @pawewrona9749
    @pawewrona9749 Před rokem +9

    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 Před 2 měsíci +2

      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.

  • @kirstinlarson3880
    @kirstinlarson3880 Před rokem

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

  • @sachin.tandon
    @sachin.tandon Před rokem

    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!

  • @adrianhoraciosantanavaldes1908

    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

  • @raimundojs9547
    @raimundojs9547 Před rokem

    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  Před rokem

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

  • @ryanschumacher5149
    @ryanschumacher5149 Před rokem +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! 💓

  • @jaybuddhadev3543
    @jaybuddhadev3543 Před 3 měsíci

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

  • @joaorataoo
    @joaorataoo Před rokem

    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.

  • @udusegbe
    @udusegbe Před rokem +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! 😀

  • @excel-in-g
    @excel-in-g Před rokem

    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.

  • @williamarthur4801
    @williamarthur4801 Před rokem

    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.

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

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

  • @umeshlangade9231
    @umeshlangade9231 Před rokem +2

    Thank you so much Goodly for this masterpiece 😊

  • @sbatsia
    @sbatsia Před rokem

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

  • @pavelfilippov-nt2ni
    @pavelfilippov-nt2ni Před 19 dny

    Thank you for lesson! Marvelous!

  • @sumardjo
    @sumardjo Před měsícem

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

  • @kennethpaige7036
    @kennethpaige7036 Před rokem +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.

  • @HachiAdachi
    @HachiAdachi Před rokem +1

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

  • @zahoorsarbandi2982
    @zahoorsarbandi2982 Před rokem +1

    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!

  • @ricardobunge5957
    @ricardobunge5957 Před rokem +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!

  • @henryseah1162
    @henryseah1162 Před 10 měsíci

    I learnt a lot from you. Thank you Chandeep!

  • @poulpon1164
    @poulpon1164 Před rokem

    Thank you! Brilliant and useful as usual!

  • @bugsdenis547
    @bugsdenis547 Před 3 měsíci

    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

  • @bodhanandannhattuvetty3179

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

  • @ViktorSamosiuk-wu5fq
    @ViktorSamosiuk-wu5fq Před 2 měsíci

    so great tutorial!! Thank you so much!

  • @KamranMumtazAhmed
    @KamranMumtazAhmed Před 2 měsíci

    Thank you for the great explanations.

  • @Sumanth1601
    @Sumanth1601 Před rokem +2

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

  • @BillSzysz1
    @BillSzysz1 Před rokem +5

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

    • @GoodlyChandeep
      @GoodlyChandeep  Před rokem

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

  • @godwinsiabukandu2196
    @godwinsiabukandu2196 Před rokem

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

  • @GosCee
    @GosCee Před rokem +1

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

  • @einoconsult5563
    @einoconsult5563 Před rokem

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

  • @Oprimaita
    @Oprimaita Před rokem +2

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

  • @alphamaniac9411
    @alphamaniac9411 Před rokem

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

  • @odallamico
    @odallamico Před 2 měsíci

    Absolutely amazing !!!!!

  • @kimgraf4085
    @kimgraf4085 Před rokem

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

  • @malchicken
    @malchicken Před rokem +1

    So helpful ^^, thank you 🙏.

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz Před měsícem

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

  • @mohammedmanna3488
    @mohammedmanna3488 Před rokem

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

  • @DavidGzirishvili
    @DavidGzirishvili Před rokem

    Fantastic! Thanks a lot!

  • @RohanGupta_LP
    @RohanGupta_LP Před rokem

    Wowww. Thanks for the explanation.

  • @efficiency365
    @efficiency365 Před rokem

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

  • @mshparber
    @mshparber Před rokem

    AWESOME! Thanks!
    Closing Balance is a great sample!

  • @kot23
    @kot23 Před rokem +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!

  • @navisalomi
    @navisalomi Před rokem

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

  • @jimfitch
    @jimfitch Před rokem +1

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

  • @mnowako
    @mnowako Před rokem +1

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

  • @sanjeevsoni6793
    @sanjeevsoni6793 Před rokem +1

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

  • @darwisyb
    @darwisyb Před 9 dny

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

  • @alirezahossini463
    @alirezahossini463 Před rokem

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

  • @user-gu8wb3ui5x
    @user-gu8wb3ui5x Před rokem

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

  • @danishnawaz7504
    @danishnawaz7504 Před rokem +2

    You are Amazing

  • @enocharthur4322
    @enocharthur4322 Před rokem +1

    You're a really really great tutor!!!

  • @krzysiekbanach3737
    @krzysiekbanach3737 Před rokem +1

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

  • @juancarlosleytonfernandez9146

    Aweshome!!! Amazing!!

  • @amitk1208
    @amitk1208 Před rokem +1

    Your explanation is wonderful one can easily understand even Complex formula

  • @MacarServicios
    @MacarServicios Před rokem

    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!

  • @sue_bayes
    @sue_bayes Před rokem +1

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

  • @martyc5674
    @martyc5674 Před rokem

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

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz Před rokem

    You sir are a phenomenal instructor.

  • @timolff9239
    @timolff9239 Před rokem

    the quality of these videos are mind blowing.

  • @learningmadesimple347
    @learningmadesimple347 Před rokem +1

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

  • @cheikhhakim5864
    @cheikhhakim5864 Před rokem

    thank you Chandeep i m grateful

  • @MrKamranhaider0
    @MrKamranhaider0 Před rokem

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

  • @QasimAli-gy3nb
    @QasimAli-gy3nb Před rokem

    You really really really knock it out chandeep.

  • @thebhaskarjoshi
    @thebhaskarjoshi Před rokem

    Thanks for video, Chandeep 🙂amazing content as always

  • @TheCraigie007
    @TheCraigie007 Před rokem

    Thanks , Loved It !

  • @vwij1736
    @vwij1736 Před 9 měsíci

    Awesome!

  • @emilmubarakshin49
    @emilmubarakshin49 Před rokem

    Amazing function and fantastic explanation

  • @Sheepy0861
    @Sheepy0861 Před 5 měsíci

    Just wow ..

  • @dirkstaszak4838
    @dirkstaszak4838 Před rokem +1

    Oh man nice one again. 👍

  • @KjeldSeegert
    @KjeldSeegert Před rokem

    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

  • @kennethstephani692
    @kennethstephani692 Před rokem

    Another Great Video!!

  • @nicopicco
    @nicopicco Před rokem +1

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

  • @anfiiiii
    @anfiiiii Před rokem

    Brilliant, thanks bro

  • @ravamo0053
    @ravamo0053 Před 6 měsíci

    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

  • @rwilson101
    @rwilson101 Před rokem

    Beautiful!

  • @ajieapen
    @ajieapen Před rokem +2

    Hi Chandeep, in the beginning of the video, you had mentioned that you'd cover an alternative solution too... Looks like you missed it... :)

    • @GoodlyChandeep
      @GoodlyChandeep  Před rokem +3

      Yeah.. the video went a bit too long so had to prune it.

  • @bartomiejonak5013
    @bartomiejonak5013 Před rokem

    Hey - Excel Is Fun children keep the father's level and extract Power (Query) of current XL tools. Keep it goin PQ.

  • @kebincui
    @kebincui Před rokem

    Very well explained

  • @shamafirdos8077
    @shamafirdos8077 Před rokem

    Amazingggggg... thanks for sharing

  • @Nalaka-Wanniarachchi
    @Nalaka-Wanniarachchi Před 5 měsíci

    Absolutely Gorgeous !!!

  • @pavelandreev6023
    @pavelandreev6023 Před rokem

    Great 👍!!!

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

    Finished watching

  • @rrrraaaacccc80
    @rrrraaaacccc80 Před rokem

    Excellent 💯👍👏

  • @koenhuet5941
    @koenhuet5941 Před 10 měsíci

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

  • @sebastienschoonjans9727

    You explain things so well

  • @MrAbrandao
    @MrAbrandao Před 3 měsíci

    fantastic

  • @powerbinareal
    @powerbinareal Před rokem +1

    Sempre TOP! #powerbinareal

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz Před měsícem

    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?

  • @kesavaraju9652
    @kesavaraju9652 Před rokem +1

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