Subtotal and Column Total in Power Query

  Рет қаралды 28,793

Goodly

Goodly

Күн бұрын

Пікірлер: 88
@GeorgeKlucsarits
@GeorgeKlucsarits Жыл бұрын
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.😊
@javedkhan-tz6fn
@javedkhan-tz6fn Жыл бұрын
The best channel and teacher for power query thanks Chandeep
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you think so!
@KuldeepSingh-nq1vi
@KuldeepSingh-nq1vi Жыл бұрын
Salute to your dedications and appreciate your knowledge.. Thanks for making such nice tutorials..
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Pleasure!
@christophelombart
@christophelombart 10 ай бұрын
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
@SamanthaMayne-d5g
@SamanthaMayne-d5g 11 ай бұрын
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?
@acarolinoa
@acarolinoa 7 ай бұрын
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
@kinleyzam620
@kinleyzam620 Жыл бұрын
Thank you so much for this automated record and it worked perfectly fine with my datasets
@Dindralia
@Dindralia 5 ай бұрын
Hi Goodly, great video! Is it possible to create a blank row after each total?
@Dindralia
@Dindralia 4 ай бұрын
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
@joserochefort7778
@joserochefort7778 Жыл бұрын
formidable, exactly what I need... is it possible to add a blank row between two subtotals ? Huge thank you
@imronnesia5170
@imronnesia5170 6 ай бұрын
Good and clear explanation. i've subcribed to learn more. thank you
@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?
@roywilson9580
@roywilson9580 Жыл бұрын
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.
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you enjoyed it!
@williamarthur4801
@williamarthur4801 11 ай бұрын
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.
@syedaneesdurez7197
@syedaneesdurez7197 Жыл бұрын
Thank you very much for such great solution and time consuming process...... Appreciate
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you liked it!
@odallamico
@odallamico 4 ай бұрын
Simply amazing!!!!!! Thank you for share
@radekminarik7417
@radekminarik7417 Жыл бұрын
This guy is absolutely amazing. Great video as always.
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks !
@patrickharilantoraherinjat2994
@patrickharilantoraherinjat2994 Жыл бұрын
Hi Chandeep! in list.accumulate can we proced like this : if Value.Type(source[c]) = number then list.Sum(...) else "Total"
@akrimnialhabil4541
@akrimnialhabil4541 Жыл бұрын
thanks!, it’s really helpful !
@williamarthur4801
@williamarthur4801 Жыл бұрын
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.
@williamarthur4801
@williamarthur4801 Жыл бұрын
Oh and thanks for the downloads.
@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?
@sumardjo
@sumardjo 4 ай бұрын
Thanks for tutorial thanks very much to Sample file I can follow your Video
@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)
@user-mma173
@user-mma173 Жыл бұрын
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.
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Slick!
@orleanCosta
@orleanCosta Жыл бұрын
It's Ridiculous. Amazing!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks Orlean!
@rhaps2008
@rhaps2008 Жыл бұрын
Awesome, thank you just what I needed for my report
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Sweet.. thanks a lot! I am glad it helped.
@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?
@sanchitgoyalvlogs
@sanchitgoyalvlogs Жыл бұрын
which camera do u use?
@oscarmendez-roca9181
@oscarmendez-roca9181 Жыл бұрын
Great video and very usefull as always. Good job Chandeep!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Happy to help!
@juliethramos7864
@juliethramos7864 3 ай бұрын
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.
@akrimnialhabil4541
@akrimnialhabil4541 Жыл бұрын
Awesome !
@stefaanlouette
@stefaanlouette Жыл бұрын
Stunning, thanks for sharing this
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you enjoyed it!
@alexbarbucristi
@alexbarbucristi 6 ай бұрын
Superb
@zahoorsarbandi2982
@zahoorsarbandi2982 Жыл бұрын
of course! amazing work with a lot of information.
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you think so!
@narasimhaprasad847
@narasimhaprasad847 Жыл бұрын
Lovely..... Thanks for sharing
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thank you! Cheers!
@mnowako
@mnowako Жыл бұрын
Excellent. Thank you!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you enjoyed it!
@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
@kebincui
@kebincui Жыл бұрын
Clever and beautiful 👍
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thank you Kebin! 😊
@strangersingh6770
@strangersingh6770 Жыл бұрын
Great work thank you so much
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you enjoyed it!
@mnowako
@mnowako Жыл бұрын
Thanks
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks for the Tip Mariusz!
@Aviji2525
@Aviji2525 Жыл бұрын
Trying to reach you on email since long. Can you let me know when is your new batch starting?
@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… 🤔
@AnbarasuAnnamalai
@AnbarasuAnnamalai Жыл бұрын
It is great, Thank you
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you like it!
@syedaneesdurez7197
@syedaneesdurez7197 Жыл бұрын
Thanks and looking for the text file of M Code.
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
goodly.co.in/subtotal-and-column-total-in-power-query/
@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
@مسلم_سني_مسلم
@مسلم_سني_مسلم Жыл бұрын
Beautiful 👏🏼👏🏼👏🏼
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thank you! Cheers!
@muzniahamed5887
@muzniahamed5887 Жыл бұрын
From Sri Lanka 🇱🇰🇱🇰🇱🇰
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks!
@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.
@randolfojolongutierrez5311
@randolfojolongutierrez5311 Жыл бұрын
Wow... Belleza
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks!
@massimocolaceci
@massimocolaceci Жыл бұрын
Grazie.
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks for the tip!
@massimocolaceci
@massimocolaceci Жыл бұрын
@@GoodlyChandeep a humble acknowledgment for the amazing content of your channel. Thank you
@silverfunnel6819
@silverfunnel6819 Жыл бұрын
👍
@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..
@saadspawn
@saadspawn Жыл бұрын
What about if I want to show total on the top?
@daimpi
@daimpi 5 ай бұрын
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 :)
@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.
@hasnainsabir4893
@hasnainsabir4893 Жыл бұрын
kindly share the file
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
goodly.co.in/subtotal-and-column-total-in-power-query/
List.Accumulate in Power Query with Practical Examples
27:26
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 79 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 22 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 101 МЛН
each & underscore_  in Power Query Explained
9:58
Goodly
Рет қаралды 49 М.
How to Move Data Automatically Between Excel Files
11:37
Kenji Explains
Рет қаралды 147 М.
10 awesome Power Query tricks you NEED to know! | Excel Off The Grid
15:44
Excel Off The Grid
Рет қаралды 45 М.
Convert Multiple Column Groups to Rows in Power Query
17:18
Power Query Running Totals - The Right Way!
11:53
MyOnlineTrainingHub
Рет қаралды 76 М.
Power Query - Avoid "Helper Queries" (+10 Cool Tricks)
18:40
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 79 МЛН