Subtotal and Column Total in Power Query

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

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

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

    Awesome, thank you just what I needed for my report

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

    Grazie.

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

      Thanks for the tip!

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

      @@GoodlyChandeep a humble acknowledgment for the amazing content of your channel. Thank you

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

    Thanks

  • @javedkhan-tz6fn
    @javedkhan-tz6fn Год назад +1

    The best channel and teacher for power query thanks Chandeep

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

    Hi Chandeep! Once again I'm faced with an obscure challenge and I find that you have a video solving my exact problem. Not only is my challenge solved, but I learned a lot more about Power Query once again. Thanks for posting such great content!

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

      Good day, Chandeep. I've been trying to download the M-code file from your site but so far no luck. I've entered my email and clicked download but nothing happens. I'm stuck on a step for creating the subtotals based on grouping and I'm hoping that a detailed review of your solution will get me over that hurdle. Many thanks in advance!

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

      Exactly.😊

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi Год назад +2

    Salute to your dedications and appreciate your knowledge.. Thanks for making such nice tutorials..

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

    Thank you so much for this automated record and it worked perfectly fine with my datasets

  • @roywilson9580
    @roywilson9580 Год назад +3

    Thanks for the interesting video. Not sure that I would ever want to add a totals or subtotals row in Power Query but still very interesting.

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

    This guy is absolutely amazing. Great video as always.

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

    Thank you very much for such great solution and time consuming process...... Appreciate

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

    Really great video, learned a lot and will be going over a few times, ok with the manual except I used Record from list . Re List .Accumulate, you did a video on non date running totals in DAX,
    I ( with help from on high) came up with this for M ;
    Listt.Skip(
    List.Accumulate(
    Source [Units] , {0}, (A,B)=> A & List.Last(A) + B } ) , 1 )
    Then wrap this so;
    Table.FromColumns(
    Table.ToColumns(Source) & {Accumulate List}
    Table.ColumnNames(Source) & {"Running Total"} ),
    can be done all in one, might make a good challenge for most inventive way.

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

    Good and clear explanation. i've subcribed to learn more. thank you

  • @ninokereselidze5848
    @ninokereselidze5848 23 дня назад

    Great, thank you!

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

    Simply amazing!!!!!! Thank you for share

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

    thanks!, it’s really helpful !

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

    Hi Goodly, great video! Is it possible to create a blank row after each total?

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

      For the people that want a blank row to show below the subtotals, make sure to replace from "RowTotal":
      RowTotal =
      Table.InsertRows(
      InputTable,
      Table.RowCount(InputTable), {TotalRecord}
      ),
      BlankRow =
      List.Accumulate(
      Table.ColumnNames(RowTotal),
      [],
      (s,c)=> Record.AddField(s, c, null)
      ),
      RowTotalWithBlank =
      Table.InsertRows(
      RowTotal,
      Table.RowCount(RowTotal), {BlankRow}
      ),

      ColTotal =
      Table.AddColumn(
      RowTotalWithBlank, "Col Total",
      each List.Sum(List.Select(Record.ToList(_), each _ is number))
      )
      in
      if AddColumnTotal = true then ColTotal else RowTotalWithBlank

  • @oscarmendez-roca9181
    @oscarmendez-roca9181 Год назад

    Great video and very usefull as always. Good job Chandeep!

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

    Thanks for this video ! This is a great example to start with Power Query. Is it possible to format differently the Total Row like put it in bold, change the color, .... ? Thanks

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

    Stunning, thanks for sharing this

  • @SamanthaMayne-d5g
    @SamanthaMayne-d5g Год назад

    Hello! Thank you for this awesome video :) Re: The part you mentioned about "skipping columns" -- When I get the row total it is including the product# into the sum which I don't want. How do I ask it to skip that for the row Totals?

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

    It's Ridiculous. Amazing!

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

    Hello, It was amazing :) I would like to ask, how about if I wanted to add a row wit HIGH and Low as a subtitle and a blank row between the subtotals so they could be more visible? thank you

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

    which camera do u use?

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

    Thanks for tutorial
    thanks very much to Sample file
    I can follow your Video

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

    formidable, exactly what I need... is it possible to add a blank row between two subtotals ? Huge thank you

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

    Clever and beautiful 👍

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

    I think you should do a video on the function you shared, I'm pretty creatin how it works, but
    as to skipping columns, but it would be interesting to see explained properly.

  • @مسلم_سني_مسلم
    @مسلم_سني_مسلم Год назад

    Beautiful 👏🏼👏🏼👏🏼

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

    Magic, thanks Chandeep. Question if i have a other table, say i only want column 10 and 11 to (sub)total. Is there a way to just point out to those columns instead of using InitialColumn?

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

    Sorry and I have a question, at the end when you use the function, Fnrow&ColTotal(Source,2 this number 2 according what you say is to ignore columns Category and Product, so I dont understand why the label "Total" appears in the sixth row , for me it should not because the function should not meet the items of the two first columns that can't be added together (they are string)

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

    of course! amazing work with a lot of information.

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

    Lovely..... Thanks for sharing

  • @SachinShinde-vj1xj
    @SachinShinde-vj1xj Год назад

    I am working on a model where I want to store values of certain parameter on every Monday of week and they should not change once the dashboard is refreshed. Can you help with the way to do it?

  • @user-mma173
    @user-mma173 Год назад +2

    The way I solve this is by creating a single row table using Table.FromColumns with the columns I need to sum. Then, I append it to main table.

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

    Excellent. Thank you!

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

    Great work thank you so much

  • @patrickharilantoraherinjat2994

    Hi Chandeep! in list.accumulate can we proced like this : if Value.Type(source[c]) = number then list.Sum(...) else "Total"

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

    Thanks and looking for the text file of M Code.

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

      goodly.co.in/subtotal-and-column-total-in-power-query/

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

    From Sri Lanka 🇱🇰🇱🇰🇱🇰

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

    Superb

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

    It is great, Thank you

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

    Thanks for sharing the informative video. I was trying the same with the function -but it led to my query being stuck and not completing the load. Can you think of any possible reasons for the same and how to overcome this?

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

    Awesome !

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

    Wow... Belleza

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

    how could you do the subtotals without the function. I don't want to invoke the function. I would like to add sub totals to each table of the gruoped column and then combine then

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

      Hi Chandeep, I'm interested in this, too. I'm having difficulty downloading your solution and I'm getting stuck at creating the record after doing the grouping.

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

    What about if I want to show total on the top?

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

      at 12:26 when he uses Table.InsertRows , instead of using 5 you can use 0, that should give you the totals at the top :)

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

    How are you? I wanted to ask you something, that is a little offtopic, but maybe you can help me. When I work in the Power Query formula bar, I can't see that list of options that appear when we start writing. For instance, in the minute 4.33 you start typing and all the references to Table appear. In my excel that doesn't happen, do you know how to activate it?

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

      Do the following in Power Query:
      File > Options and Settings > Query Options > Power Query Editor (under Global Options) > check the box on the right under Formula to enable M Intellisense in the formula bar

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

    Trying to reach you on email since long. Can you let me know when is your new batch starting?

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

    I just do a Reference, Group By and Append to get the total line and then alter the code to get the word Total in.
    I hate UI's and like to do it all in PQ. In SQL I would SELECT "---------------" to even get the separator lines above and below the total line

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

    Negative, Chandeep, meaning: not too technical at all. :-) This is nice, more integrated challenge.
    The only thing I’m thinking is: I wonder if it’s possible to do this without List.Accumulate… 🤔

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

    The answer is in your code,sorry I saw it at last

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

    Downloads from the internet are restricted by my company. I’ve watched the entire video and now unable to complete. It would be good to include the video with the required signup or login of each email address.

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

    I have a more crazy but not efficient solution:
    0. Connect to the data source in the video
    1. Create a new column called Total = All the value in each row is "Total"
    2. Transform -> Group by the new column Total ->and aggregate the column we need to sum up ->then it would create a small table with one line which is the subtotal of the whole table -> remove the column Product:
    3. Append the table and the newly created table..

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

    Awesome! I'm running into an issue. I need to have Subtotals (per category) and one last row with the Grand Totals at the end. When I use the Fx, the Grand total is duplicating the amount that results after SUM all the subtotals...like duplicating amounts.

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

    kindly share the file

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

      goodly.co.in/subtotal-and-column-total-in-power-query/

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

    👍