Pivot table calculate column, not right total

INN

Board Regular
Joined
Feb 3, 2021
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Hi
I have the table below. I created a ca;cu;ated colum in Pivot table to multiple Unit * Price. However the total that Pivot table is giving me is 40 but in excel if I multiple Unit* Price for all items using Sumproduct or writing simple formula then I would give 10, So which result is right and which one is wrong. Thank you very much.

Relationship.xlsx
ABCDEFG
1DateRegionRepItemColorUnitPrice
202/01/22WestKumarBindersBlack11
302/01/22EastWaltonPensBlack12
402/01/22CentralJonesDeskBlack13
502/01/22CentralJonesBindersRed14
6
7total using sumproduct10
8
9
10Pivot table
11Row Labelsunit #sum priceUnit*Price (calculated col)
12Binders2510
13Desk133
14Pens122
15Grand Total41040
diff col (2)
Cell Formulas
RangeFormula
E7E7=SUMPRODUCT(F2:F5,G2:G5)
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi Inn,


The pivot treats the 2 binders as one, sums the price then multiplies by 2.
Solution is to have an unique name, for items with different prices.

Book1
ABCDEFGHI
1DateRegionRepItemColorUnitPriceItem-Color
244563WestKumarBindersBlack11Binders-Black
344563EastWaltonPensBlack12Pens-Black
444563CentralJonesDeskBlack13Desk-Black
544563CentralJonesBindersRed14Binders-Red
6
7
8
9
10Pivot table
11Row Labelsunit #sum priceUnit*Price (calculated col)Row LabelsSum of PriceSum of UnitSum of Rev
12Binders2510Binders-Black111
13Desk133Binders-Red414
14Pens122Desk-Black313
15Grand Total41040Pens-Black212
16410
Sheet1
Cell Formulas
RangeFormula
H2:H5H2=D2&"-"&E2
H16:I16H16=SUM(H12:H15)



The calculated field for grand totals does 4 x 10, as instructed (unit x price). It does not realise it is a grand total, etc.
Solution - get rid of Pivot's Grand Totals, add underneath.

calculated fields are tricky in such situation (non-unique items).

G
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,227
Members
453,025
Latest member
Hannah_Pham93

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