Multiple columns in pivot table reset running total

txdore

New Member
Joined
Jun 16, 2005
Messages
9
I created a pivot chart with a running total. In the first example below [sorry, IT doesn't allow me to use the HTML maker], the running total of the for that category works fine (Amount, Show data as: running total in, base field: Date).

FYI, the fields Category, Date, & Amount are in the columns. Amount is also in the data field. And I am using 2003.

Sum of Amount
Category,Date,Amount,Running Total
Gas,1-Apr,(blank),0
,07-Apr,50,50
,09-Apr,50,100
,12-Apr,50,150
,13-Apr,50,200
,18-Apr,50,250
,23-Apr,50,300
,10-Apr,50,350
Gas Total,,,
Gro,01-Apr,(blank),0
,02-Apr,25,25
,08-Apr,25,50
,12-Apr,25,75
,15-Apr,25,100
,22-Apr,25,125
Gro Total,,,
Grand Total,,,

But I want to add some more fields. (I didn't find any other posts addressing this issue.) I want to see the date, vendor, and amount of each transaction AND the running total for the category. When I add the Vendor field to the columns as shown below, the running total stops working. I tried changing the base field some, but nothing works. It does weird things, like if the base category is set to vendor, it sums the vendors even though it's out of order. Any ideas??

Sum of Amount
Category,Date,Vendor,Amount,Running Total
Gas,07-Apr,Chevron,50,50
,09-Apr,Sam's Club,50,50
,12-Apr,Chevron,50,50
,13-Apr,Sam's Club,50,50
,18-Apr,Chevron,50,50
,23-Apr,Chevron,50,50
,10-Apr,Chevron,50,50
Gas Total,,,,350
Gro,02-Apr,Kroger,25,25
,08-Apr,Tom Thumb,25,25
,12-Apr,Kroger,25,25
,15-Apr,Kroger,25,25
,22-Apr,Tom Thumb,25,25
Gro Total,,,,475
Grand Total,,,,

Data:
Date,Vendor,Category,Amount
02-Apr,Kroger,Groceries,25
06-Apr,Allstate,Insurance,120
07-Apr,Chevron,Gas,50
08-Apr,Tom Thumb,Groceries,25
10-Apr,Chevron,Gas,50
09-Apr,Sam's,Gas,50
12-Apr,Chevron,Gas,50
12-Apr,Kroger,Groceries,25
13-Apr,Sam's,Gas,50
15-Apr,Kroger,Groceries,25
18-Apr,Chevron,Gas,50
22-Apr,Tom Thumb,Groceries,25
23-Apr,Chevron,Gas,50
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi,
IT doesn't allow me to use the HTML maker

Try to use the Wrap HTML built up with the Message box. It it the icon that looks like this "<>",second to the last among all the small icons fro font, indent, link...

it should have taken you you a while to type all of this...;)

What version of Excel are you using?
Thnks.
 
Upvote 0
Cut and paste is our friend.
Funny, I don't see any font tools at all.
Anyway, I'm doing this from the house how. I know it says 2010 below, but I am using office 2003 at the office!!

This is what I have...

Excel 2010
ABCD
3Sum of Amount
4CategoryDateAmountTotal
5Gas1-Apr(blank)0
67-Apr5050
79-Apr50100
810-Apr50150
912-Apr50200
1013-Apr50250
1118-Apr50300
1223-Apr50350
13Gas Total
14Groceries1-Apr(blank)0
152-Apr2525
168-Apr2550
1712-Apr2575
1815-Apr25100
1922-Apr25125
20Groceries Total
21Insurance1-Apr(blank)0
226-Apr120120
23Insurance Total
24Grand Total
25
26
Table


This is what I want, except the running total isn't working. It's keeping a running total for the vendor and not the entire category.
Like I said before, the category, vendor, date, and amount are all in the column field of the pivot table.


Excel 2010
HIJKL
3Sum of Amount
4CategoryDateVendorAmountRunning Total
5Gas7-AprChevron5050
69-AprSam's5050
712-AprChevron50100
813-AprSam's50100
918-AprChevron50150
1023-AprChevron50200
1110-AprChevron50250
12Gas Total
13Groceries2-AprKroger2525
148-AprTom Thumb2525
1512-AprKroger2550
1615-AprKroger2575
1722-AprTom Thumb2550
18Groceries Total
19Grand Total
20
21
22
23
Table
 
Last edited:
Upvote 0
Oh... 2003. I am not sure if this will work. Hopefully someone with 2003 will pitch in.

Is your raw date somehow like this?
HTML:
Category	Vendor	Date	Amount	Total
Gas            	Chevron	7-Apr	50	50
Gas           	Sam's	9-Apr	50	100
Gas            	Chevron	10-Apr	50	150
Gas           	Chevron	12-Apr	50	200
Gas            	Sam's	13-Apr	50	250
Gas           	Chevron	18-Apr	50	300
Gas           	Chevron	23-Apr	50	350
Groceries	Kroger	2-Apr	25	25
Groceries	Tom Thumb	8-Apr	25	50
Groceries	Kroger	12-Apr	25	75
Groceries	Kroger	15-Apr	25	100
Groceries	Tom Thumb	22-Apr	25	125
Insurance		6-Apr	120	120

I created a pivot from this and it gave this:

HTML:
Category/date	Sum of Amount	Sum of Total
Gas	350	1400
7-Apr	50	50
9-Apr	50	100
10-Apr	50	150
12-Apr	50	200
13-Apr	50	250
18-Apr	50	300
23-Apr	50	350
Groceries	125	375
2-Apr	25	25
8-Apr	25	50
12-Apr	25	75
15-Apr	25	100
22-Apr	25	125
Insurance	120	120
6-Apr	120	120
Grand Total	595	1895

But I am not sure if this is what you wanted to see.
 
Upvote 0
Yes, that's the data.
Can you add the vendor (should coordinate with the date and amount) to that pivot table without the running total going wacky?
 
Upvote 0
Tx, if in this order: Category / Date / Vendor?

HTML:
Category/date	Sum of Amount	Sum of Total
Gas	350	1400
7-Apr	50	50
Chevron	50	50
9-Apr	50	100
Sam's	50	100
10-Apr	50	150
Chevron	50	150
12-Apr	50	200
Chevron	50	200
13-Apr	50	250
Sam's	50	250
18-Apr	50	300
Chevron	50	300
23-Apr	50	350
Chevron	50	350
Groceries	125	375
2-Apr	25	25
Kroger	25	25
8-Apr	25	50
Tom Thumb	25	50
12-Apr	25	75
Kroger	25	75
15-Apr	25	100
Kroger	25	100
22-Apr	25	125
Tom Thumb	25	125
Insurance	120	120
6-Apr	120	120
(blank)	120	120
Grand Total	595	1895

I still get the data correct, but it becomes a bit difficult to read because of the "subtotals".

If the order is changed to Category / Vendor / date

it would give this:
HTML:
Category/date	Sum of Amount	Sum of Total
Gas	350	1400
Chevron	250	1050
7-Apr	50	50
10-Apr	50	150
12-Apr	50	200
18-Apr	50	300
23-Apr	50	350
Sam's	100	350
9-Apr	50	100
13-Apr	50	250
Groceries	125	375
Kroger	75	200
2-Apr	25	25
12-Apr	25	75
15-Apr	25	100
Tom Thumb	50	175
8-Apr	25	50
22-Apr	25	125
Insurance	120	120
(blank)	120	120
6-Apr	120	120
Grand Total	595	1895

mean to say it would fetch the equivalence of the Total instead of computing the running total.
 
Upvote 0
But you could do this:

HTML:
Category	Date	Vendor	Sum of Amount	Sum of Total
Gas	7-Apr	Chevron	50	50
	9-Apr	Sam's	50	100
	10-Apr	Chevron	50	150
	12-Apr	Chevron	50	200
	13-Apr	Sam's	50	250
	18-Apr	Chevron	50	300
	23-Apr	Chevron	50	350
Gas Total			350	1400
Groceries	2-Apr	Kroger	25	25
	8-Apr	Tom Thumb	25	50
	12-Apr	Kroger	25	75
	15-Apr	Kroger	25	100
	22-Apr	Tom Thumb	25	125
Groceries Total			125	375
Insurance	6-Apr	(blank)	120	120
Insurance Total			120	120
 
Upvote 0
But you could do this:

HTML:
Category	Date	Vendor	Sum of Amount	Sum of Total
Gas	7-Apr	Chevron	50	50
	9-Apr	Sam's	50	100
	10-Apr	Chevron	50	150
	12-Apr	Chevron	50	200
	13-Apr	Sam's	50	250
	18-Apr	Chevron	50	300
	23-Apr	Chevron	50	350
Gas Total			350	1400
Groceries	2-Apr	Kroger	25	25
	8-Apr	Tom Thumb	25	50
	12-Apr	Kroger	25	75
	15-Apr	Kroger	25	100
	22-Apr	Tom Thumb	25	125
Groceries Total			125	375
Insurance	6-Apr	(blank)	120	120
Insurance Total			120	120

That's it! For some reason it wouldn't do that for me.
What fields did you have in the column, row, data fields? What base did you use? Can you attach the file?
 
Upvote 0
Yeah sure here is the file saved as a 97-2004 file.

Link to your file.

Let me know if it works.

I placed in Row Labels:
Category then Date then Vendor.
Values remain in Column Labels
Sum of Amount and Sum of Total are placed in ∑ Values.

Finally I set the pivot as a Tabular Layout.
 
Upvote 0

Forum statistics

Threads
1,216,767
Messages
6,132,599
Members
449,738
Latest member
brianm3y3r

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