Calculated subtotals in Pivot table

emema0

New Member
Joined
Jan 18, 2019
Messages
4
I want to add calculated subtotals into a pivot table
Like in a finicial report you want to se Margins after different categories

I have the scenario in the tabels below.

A table with balance per account, I have created an "Income statement report" in a pivot now I would like to add the 2 subtotals that are seen in the copy of the pivot A/I% and TG%
Is this possible?

[TABLE="width: 500"]
<tbody>[TR]
[TD]Account[/TD]
[TD]Accountclass[/TD]
[TD]Perios[/TD]
[TD]Balance[/TD]
[TD]Budget[/TD]
[/TR]
[TR]
[TD]3010[/TD]
[TD]Income[/TD]
[TD]Jan[/TD]
[TD]500[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]3010[/TD]
[TD]Income[/TD]
[TD]Feb[/TD]
[TD]1000[/TD]
[TD]900[/TD]
[/TR]
[TR]
[TD]3010[/TD]
[TD]Income[/TD]
[TD]Mar[/TD]
[TD]800[/TD]
[TD]800[/TD]
[/TR]
[TR]
[TD]3020[/TD]
[TD]Income[/TD]
[TD]Jan[/TD]
[TD]300[/TD]
[TD]250[/TD]
[/TR]
[TR]
[TD]3020[/TD]
[TD]Income[/TD]
[TD]Feb[/TD]
[TD]250[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]3020[/TD]
[TD]Income[/TD]
[TD]Mar[/TD]
[TD]300[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]7010[/TD]
[TD]Personnel Cost[/TD]
[TD]Jan[/TD]
[TD]-250[/TD]
[TD]-250
[/TD]
[/TR]
[TR]
[TD]7010[/TD]
[TD]Personnel Cost[/TD]
[TD]Feb[/TD]
[TD]-250[/TD]
[TD]-250[/TD]
[/TR]
[TR]
[TD]7010[/TD]
[TD]Personnel Cost[/TD]
[TD]Mar[/TD]
[TD]-250[/TD]
[TD]-250[/TD]
[/TR]
[TR]
[TD]4010[/TD]
[TD]Expenses[/TD]
[TD]Jan[/TD]
[TD]-50[/TD]
[TD]-20[/TD]
[/TR]
[TR]
[TD]4010[/TD]
[TD]Expenses[/TD]
[TD]Feb[/TD]
[TD]-60[/TD]
[TD]-60[/TD]
[/TR]
[TR]
[TD]4010[/TD]
[TD]Expenses[/TD]
[TD]Mar[/TD]
[TD]-100[/TD]
[TD]-100[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 500"]
<tbody>[TR]
[TD]Filter[/TD]
[TD]Period[/TD]
[TD]Jan[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rowlabels[/TD]
[TD][/TD]
[TD]Sum of Balance[/TD]
[TD]Sum of Budget[/TD]
[/TR]
[TR]
[TD]Incomes[/TD]
[TD][/TD]
[TD]800[/TD]
[TD]750[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3010[/TD]
[TD]500[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3020[/TD]
[TD]300[/TD]
[TD]250[/TD]
[/TR]
[TR]
[TD]Personnel Cost[/TD]
[TD][/TD]
[TD]-250[/TD]
[TD]-250[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]7010[/TD]
[TD]-250[/TD]
[TD]-250[/TD]
[/TR]
[TR]
[TD]Expenses[/TD]
[TD][/TD]
[TD]-50[/TD]
[TD]-20[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4010[/TD]
[TD]-50[/TD]
[TD]-20[/TD]
[/TR]
[TR]
[TD]Grand total[/TD]
[TD][/TD]
[TD]500[/TD]
[TD]480
[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 500"]
<tbody>[TR]
[TD]Filter[/TD]
[TD]Period[/TD]
[TD]Jan[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rowlabels[/TD]
[TD][/TD]
[TD]Sum of Balance[/TD]
[TD]Sum of Budget[/TD]
[/TR]
[TR]
[TD]Incomes[/TD]
[TD][/TD]
[TD]800[/TD]
[TD]750[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3010[/TD]
[TD]500[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3020[/TD]
[TD]300[/TD]
[TD]250[/TD]
[/TR]
[TR]
[TD]Personnel Cost[/TD]
[TD][/TD]
[TD]-250[/TD]
[TD]-250[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]7010[/TD]
[TD]-250[/TD]
[TD]-250[/TD]
[/TR]
[TR]
[TD]A/I%[/TD]
[TD][/TD]
[TD]320%[/TD]
[TD]300%[/TD]
[/TR]
[TR]
[TD]Expenses[/TD]
[TD][/TD]
[TD]-50[/TD]
[TD]-20[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4010[/TD]
[TD]-50[/TD]
[TD]-20[/TD]
[/TR]
[TR]
[TD]Grand total[/TD]
[TD][/TD]
[TD]500[/TD]
[TD]480[/TD]
[/TR]
[TR]
[TD]TG%[/TD]
[TD][/TD]
[TD]160%[/TD]
[TD]156,25%[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited by a moderator:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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