Using calculated items in pivot table with multiple row fields

Straha

New Member
Joined
Sep 1, 2004
Messages
18
I am having trouble using a calculated item with a pivot table that has multiple row fields. The table below shows correctly.<br>
Book2
ABCDEFGHIJKLMNO
3SumofAmtMonth
4CustomerLocationJanFebMarAprMayJunJulAugSepOctNovDecGrandTotal
5CustomerALocation110001000100010001000100010001000100010001000100012000
6Location210001000100010001000100010001000100010001000100012000
7Location310001000100010001000100010001000100010001000100012000
8CustomerATotal30003000300030003000300030003000300030003000300036000
9CustomerBLocation110001000100010001000100010001000100010001000100012000
10Location410001000100010001000100010001000100010001000100012000
11Location510001000100010001000100010001000100010001000100012000
12CustomerBTotal30003000300030003000300030003000300030003000300036000
13CustomerCLocation510001000100010001000100010001000100010001000100012000
14Location610001000100010001000100010001000100010001000100012000
15Location710001000100010001000100010001000100010001000100012000
16CustomerCTotal30003000300030003000300030003000300030003000300036000
17GrandTotal900090009000900090009000900090009000900090009000108000
Sheet2


However, when I add a calculated field for Q1 (using field "Month" =Jan+Feb+Mar) every location is displayed for each customer. Like this:<br>
Book2
ABCDEFGHIJKLMNOP
3SumofAmtMonth
4CustomerLocationJanFebMarQ1AprMayJunJulAugSepOctNovDecGrandTotal
5CustomerALocation1100010001000300010001000100010001000100010001000100015000
6Location2100010001000300010001000100010001000100010001000100015000
7Location3100010001000300010001000100010001000100010001000100015000
8Location400
9Location500
10Location600
11Location700
12CustomerATotal300030003000900030003000300030003000300030003000300045000
13CustomerBLocation1100010001000300010001000100010001000100010001000100015000
14Location200
15Location300
16Location4100010001000300010001000100010001000100010001000100015000
17Location5100010001000300010001000100010001000100010001000100015000
18Location600
19Location700
20CustomerBTotal300030003000900030003000300030003000300030003000300045000
21CustomerCLocation100
22Location200
23Location300
24Location400
25Location5100010001000300010001000100010001000100010001000100015000
26Location6100010001000300010001000100010001000100010001000100015000
27Location7100010001000300010001000100010001000100010001000100015000
28CustomerCTotal300030003000900030003000300030003000300030003000300045000
29GrandTotal90009000900027000900090009000900090009000900090009000135000
Sheet2


The ideal solution would be to have Q1 only calculate for the locations specific to that customer using the first table in the example instead of having all locations displayed for each customer as in table 2.<br>
Thanks in advance for your help.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi. Don't add a new field for the quarters: there is in-built functionality in the pivot table to handle this (so long as your input data for months are dates). From your months' data in the pivot table, right click from one of the month values, or from the grey 'month' column field marker, and select 'group'. Then select quarters, and if you also want years, pick that both quarters and years. OK?
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,875
Members
449,476
Latest member
pranjal9

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