Quick Group by in Power Query

ajw5173

New Member
Joined
Apr 7, 2016
Messages
45
Hello,

I am working with a data set that has about 300 columns. There are 5 columns with attributes like department and store etc and the rest have data that I want to sum. Normally I would sum each column in Power Query group by but with so many columns of data that takes too long. Is there any way to do this quickly?

Thanks!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I am trying to use the group all function which seems to work except when go to expand the columns it only gives me the option to count. Is there any way to change this to sum in Excel 2010?
 
Upvote 0
the group-way will take you quite a while to enter if you have 300 columns...

So if performance allows, you could instead just check the columns that shouldn't be summed and unpivot others. That would turn all values under each other and create an additional column with the column headers. Then check that column and pivot (back). Default-operation will be SUM. This should return the desired results.

Performance-wise this is costlier, but worth a try.
 
Upvote 0

Forum statistics

Threads
1,224,163
Messages
6,176,789
Members
452,743
Latest member
Unique65

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top