Pivot table is giving me wrong answer

INN

Board Regular
Joined
Feb 3, 2021
Messages
118
Office Version
  1. 365
Platform
  1. Windows
Hi
In pivot table, I created a new field called Total which is the Price*Unit. I moved the new field, Total, to Values box in Pivot table and I got total = 60 which I think is wrong because the Total should be 30. Then I want to Slice by Item, so I moved Item as my Rows and I still got the wrong answer. So which answer is correct? 30 or 60 and what do you call the 30 and what do you call the 60? How to correct that. Thank you very much. The link to excel file is below.

Total.xlsx
ABCD
1Data Table
2ItemUnitPrice
3A110
4B210
5
6
7First Pivot Table - Creating new Field callled Total
8Row LabelsSum of UnitSum of PriceSum of Total(Unit*Price)
9A11010
10B21020
11Grand Total32060
12
13
14Second Pivot table - Moved Total to Values
15Sum of Total(Unit*Price)
1660
17
18
193rd Pivot table - Moved Total to Values and Item to Rows box
20Row LabelsSum of Total(Unit*Price)
21A10
22B20
23Grand Total60
Sheet4


Link to the Excel File
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hello Inn,

The Grand Total in a calculated field is still doing what it was told to do instead of being a proper Grand Total as one would expect.:

Here it multiplies 3x20 = 60, it does not add the column, and it won't, that's how it works.

Solutions:
- do the calculation in the source table
- do the total of the calculated field column in a cell outside the pivot

G
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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