How to Sum columns by criteria on the column header in Power Query | L0024

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 42

  • @kebincui
    @kebincui 2 ปีที่แล้ว +1

    The last step to avoid hard-coding changeing data type approach by "unpivotting-->change type-->pivotting back" is a really mind blowing tip. Thanks Celia for your genius solution 👍👍👍👍

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว +1

      Thanks, Kebin! And thank you for reminding of that technique. I am dealing with this challenge on another project and I just built an M solution for that when I could have simply used this approach. I totally forgot about it. 😁

  • @iankr
    @iankr 10 หลายเดือนก่อน +1

    Many thanks, Celia. This is great.
    I came across this lesson via a YT search (I already subscribe to your channel). Although it doesn't *exactly* answer my query, I can see how I can use the techniques and M functions that you've shown us in Method 4, to provide a solution to my problem. Briefly, I need to sum across a variable number of up to 12 columns (i.e. the months in a financial year) to produce the Year to Date Actuals figure per row. The number of columns to sum is obtained from a forecast reference in another column. I can now see how to get the required list of columns to sum their records.
    I like the way you lead us through the solution slowly and carefully, showing the pitfalls you encounter on the way.
    Regards
    Ian in London, UK

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  10 หลายเดือนก่อน +1

      Thank you for your kind words and feedback, Ian. I am glad the video was helpful to you. All the success in your project.

  • @StefanoVerugi
    @StefanoVerugi 2 ปีที่แล้ว +1

    thank you for posting this useful tutorial, and to always zoom on the content, many youtubers neglect it, much appreciated

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      Thank you very much for watching and your kind feedback. Glad that it was helpful.

  • @GosCee
    @GosCee ปีที่แล้ว +1

    Hi Celia, I just rewatched this video and it was captivating - very interesting to see how you were able to make the column names and the change type dynamic. Excellent work! The teacher in you definitely shines! Thanks for sharing.

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  ปีที่แล้ว

      Thank you very much for your kind words, Gosnel. :) happy that the tutorial was useful for you.

  • @owenprice4072
    @owenprice4072 2 ปีที่แล้ว +1

    Nice techniques! Thanks for taking the time to share this approach.

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      Thank you for taking the time to watch and leaving your feedback, Owen! 💚

  • @kennethstephani692
    @kennethstephani692 2 ปีที่แล้ว +1

    Great video, Celia!

  • @TeoBr
    @TeoBr 2 ปีที่แล้ว +1

    That's amazing. In just one video I was able to learn so much. Really appreciated. Thank you!

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      You're very welcome, Teodor.
      I am glad that it was helpful to you.

  • @shyamdesai8944
    @shyamdesai8944 2 ปีที่แล้ว +2

    The session was very informative. Keep up the good work. thank you

  • @bharathramc.n7796
    @bharathramc.n7796 ปีที่แล้ว +1

    Thanks for sharing your way of picking up the relevant M Code and guiding how to read M Code as we are building a query. Method 4 was outstanding as the requirement was for Special Accounts only, I think you could have included the Regular Accounts also, as you had done in Method 2 ie Pivot it's my thought. I really enjoyed the class. Method 3 after the out when used the Table to sum each column, it never occurred, one can use this way to total the given Columns .Thanks 🙏

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  ปีที่แล้ว

      You're welcome, Bharathram. I am glad that this class brought you so many insights. :) Thank you so much for leaving your feedback.

  • @paulasantamaria4791
    @paulasantamaria4791 ปีที่แล้ว

    Amazing video!! About to implement this on one report I have. Thanks !

  • @mestrecris1
    @mestrecris1 2 ปีที่แล้ว +1

    Ainda tentei ver em directo, mas estava podre de sono. Aqui ja eram 0h30. Irei ver assim que possivel e fazer o exercicio no Excel fornecido. Obrigada

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      O descanso primeiro! Com energias recuperadas aprende melhor. 😉
      Obrigada pelo carinho e apoio.
      Aguardo o seu feedback sobre a aula. Obrigada, Ana!

  • @kebincui
    @kebincui 2 ปีที่แล้ว +1

    Amazing. Thanks Celia 👍

  • @aniljaggarwal60
    @aniljaggarwal60 2 ปีที่แล้ว +1

    As like your other videos - this is also informative and interesting. Please keep sharing this kind of knowledge.

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว +1

      Thank you, Anil. I appreciate your support and feedback. 🙏

  • @shyamdesai8944
    @shyamdesai8944 2 ปีที่แล้ว +1

    90 minutes session is good.

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      Thank you for your feedback, Shyam. I am glad that you took advantage of the free lesson.

  • @kebincui
    @kebincui 2 ปีที่แล้ว +1

    Longer tutorial is good

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      Great! Glad that you find value in these lessons, Kebin. Thank you for your feedback.

  • @niranjanKumaresan-s1y
    @niranjanKumaresan-s1y ปีที่แล้ว

    Trust Me I wasted 2 days on searching how to sum with the list of columns...And most importantly ChatGPT fucked me on this...finally, Thank god, You saved me...

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  ปีที่แล้ว

      There you go! A story with a happy ending. Glad that it helped you. Thank you for letting me know. 😊

  • @amrutchitragar3014
    @amrutchitragar3014 ปีที่แล้ว

    Informative video, if column headers having name then how to automate sum

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  ปีที่แล้ว

      Select the columns that you want to sum, go to Add Column tab, click the button Standard and then choose Add.

  • @ramneeksharma4226
    @ramneeksharma4226 2 ปีที่แล้ว +1

    Hi.... after a very very long time.

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      Hi, Ramneek! Do you mean a long time without live lessons here?

    • @ramneeksharma4226
      @ramneeksharma4226 2 ปีที่แล้ว

      @@CeliaAlvesSolveExcel yes

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว

      @@ramneeksharma4226 I'll be back with more content soon. I appreciate your feedback. Feel free to always comment if and how the lesson was helpful to you.

    • @ramneeksharma4226
      @ramneeksharma4226 2 ปีที่แล้ว +1

      @@CeliaAlvesSolveExcel thnks a lot Celia... Please cover more advanced and powerful functions such as table. buffer and list. accumulate etc.

  • @jegane
    @jegane 2 ปีที่แล้ว

    @1:06:05 Can't we concatenate ColumnNames list to a single text with [ before ], after ; and then use it in list.sum?

    • @CeliaAlvesSolveExcel
      @CeliaAlvesSolveExcel  2 ปีที่แล้ว +1

      Hi, Jeganathan. Unfortunately, we cannot. When you concatenate text pieces the result is perceived as a text string too. You would have "[4791]" as a string instead of [4791] as a field name.
      But you can test it on your end and see what happens. ;-)

  • @MrWish332
    @MrWish332 2 ปีที่แล้ว +1

    My favorite was method4