grand total of a sub-column5

alex1alex

Board Regular
Joined
Sep 12, 2014
Messages
57
Hello,

This might be a straight pivot table question but posting here as my data is in Power Pivot.

I need to find the grand-total of a sub-column.
So, in the example XLS, (I just went and grabbed some census data) I would like to have the grand total of whites and blacks as the last right 2 columns of the pivot table.

Is this possible?

Thanks,
Alex


I'd like the pivot table to look like:

Sum of valueenrollmentwhiteORblack
Enrolled in grade 1Enrolled in grade 2Enrolled in grade 3
blackwhiteblackwhiteblackwhitetotal blacktotal white
Total17820399231867039107187554154655245120576

<tbody>
</tbody>

<tbody>
</tbody>



currently the pivot table fields look like:
COLUMNSVALUES
ENROLLMENTSum of POPULATION
whiteORblack

<tbody>
</tbody>



ENROLLMENTPOPULATIONwhiteORblack
Enrolled in grade 139,923white
Enrolled in grade 239,107white
Enrolled in grade 341,546white
Enrolled in grade 117,820black
Enrolled in grade 218,670black
Enrolled in grade 318,755black

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Why you want to have this strange format ? If you put whiteorblack in rows your table is much easier to read and you automatically get your subtotals.

If it has to be that kind of format for whatever reason you could create a measure for white and a measure for black that you can use instead of sum of population.
=CALCULATE(sum(Table1[POPULATION]),Table1[whiteORblack]="black")

Another solution could be create a set under options->field items and sets->create set based on column options.
 
Upvote 0
Why the strange format? Because this is just an example file :) In my work file, the rows are populated with 2/3 other fields. I can't really move/delete them. Yeah?
Also, the main point of the file is to compare white vs black. (both by grade and total).

I actually already had that measure....where do i put it?

Where is this located? -> Another solution could be create a set under options->field items and sets->create set based on column options.
 
Upvote 0

Forum statistics

Threads
1,214,654
Messages
6,120,758
Members
448,991
Latest member
Hanakoro

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