ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Table 'Grand Total' question, average instead of sum (https://www.excelbanter.com/excel-discussion-misc-queries/148277-pivot-table-grand-total-question-average-instead-sum.html)

Co-op Bank

Pivot Table 'Grand Total' question, average instead of sum
 
Hello,

I have a list of data with three columns, these are 'Period', 'Area' and
'Cost'.

I want to pivot to show the area's listed down vertically, the period
horizontally across and the 'Grand Total' inserted in the pivot table to give
an average of the periods instead of the sum. Is this possible?

Please advise, much appreciated.

Brian Taylor
Manchester, England.

ExcelBanter AI

Answer: Pivot Table 'Grand Total' question, average instead of sum
 
Hi Brian,

Yes, it is possible to show the average instead of the sum in the Grand Total of a Pivot Table. Here's how you can do it:
  1. Select the data range that you want to pivot and go to the 'Insert' tab in the Excel ribbon.
  2. Click on 'PivotTable' and choose where you want to place the Pivot Table.
  3. In the 'PivotTable Fields' pane, drag the 'Area' field to the 'Rows' area and the 'Period' field to the 'Columns' area.
  4. Drag the 'Cost' field to the 'Values' area. By default, it will show the sum of the costs.
  5. To change the calculation to average, click on the drop-down arrow next to the 'Cost' field in the 'Values' area and select 'Value Field Settings'.
  6. In the 'Value Field Settings' dialog box, select 'Average' instead of 'Sum' under the 'Summarize value field by' section.
  7. Click 'OK' to close the dialog box.
  8. Now, to show the average in the Grand Total, click on the drop-down arrow next to the 'Cost' field in the 'Values' area again and select 'Field Settings'.
  9. In the 'Field Settings' dialog box, select 'Average' instead of 'No Calculation' under the 'Custom' section.
  10. Click 'OK' to close the dialog box.

That's it! Your Pivot Table should now show the average of the costs for each period and the average of all periods in the Grand Total.

Michael

Pivot Table 'Grand Total' question, average instead of sum
 
if you right click the data in the pivot table and choose field settings you
can change the sum to average. Is this what you want?

"Co-op Bank" wrote:

Hello,

I have a list of data with three columns, these are 'Period', 'Area' and
'Cost'.

I want to pivot to show the area's listed down vertically, the period
horizontally across and the 'Grand Total' inserted in the pivot table to give
an average of the periods instead of the sum. Is this possible?

Please advise, much appreciated.

Brian Taylor
Manchester, England.


Co-op Bank

Pivot Table 'Grand Total' question, average instead of sum
 
No, I need the periods to be summed as normal but the end 'Grand Total'
column inserted by the pivot table to show as an average rather than a sum.

Regards

"Michael" wrote:

if you right click the data in the pivot table and choose field settings you
can change the sum to average. Is this what you want?

"Co-op Bank" wrote:

Hello,

I have a list of data with three columns, these are 'Period', 'Area' and
'Cost'.

I want to pivot to show the area's listed down vertically, the period
horizontally across and the 'Grand Total' inserted in the pivot table to give
an average of the periods instead of the sum. Is this possible?

Please advise, much appreciated.

Brian Taylor
Manchester, England.


Roger Govier

Pivot Table 'Grand Total' question, average instead of sum
 
Hi Brian

No you can't do that. You can do what Michael says, but add the filed
twice, once as sum and once as average, but then you are going to have a
very messy table.

Right click on the PTTable Optionsuntick Grand Total by Rows.
Create a formula to the right of the PT
=AVERAGE(B4:N4) or whatever the range is
--
Regards

Roger Govier


"Co-op Bank" wrote in message
...
No, I need the periods to be summed as normal but the end 'Grand
Total'
column inserted by the pivot table to show as an average rather than a
sum.

Regards

"Michael" wrote:

if you right click the data in the pivot table and choose field
settings you
can change the sum to average. Is this what you want?

"Co-op Bank" wrote:

Hello,

I have a list of data with three columns, these are 'Period',
'Area' and
'Cost'.

I want to pivot to show the area's listed down vertically, the
period
horizontally across and the 'Grand Total' inserted in the pivot
table to give
an average of the periods instead of the sum. Is this possible?

Please advise, much appreciated.

Brian Taylor
Manchester, England.




Co-op Bank

Pivot Table 'Grand Total' question, average instead of sum
 
Thanks thats what I expected, I was just hoping in vain there may be a hidden
dynamic solution

"Roger Govier" wrote:

Hi Brian

No you can't do that. You can do what Michael says, but add the filed
twice, once as sum and once as average, but then you are going to have a
very messy table.

Right click on the PTTable Optionsuntick Grand Total by Rows.
Create a formula to the right of the PT
=AVERAGE(B4:N4) or whatever the range is
--
Regards

Roger Govier


"Co-op Bank" wrote in message
...
No, I need the periods to be summed as normal but the end 'Grand
Total'
column inserted by the pivot table to show as an average rather than a
sum.

Regards

"Michael" wrote:

if you right click the data in the pivot table and choose field
settings you
can change the sum to average. Is this what you want?

"Co-op Bank" wrote:

Hello,

I have a list of data with three columns, these are 'Period',
'Area' and
'Cost'.

I want to pivot to show the area's listed down vertically, the
period
horizontally across and the 'Grand Total' inserted in the pivot
table to give
an average of the periods instead of the sum. Is this possible?

Please advise, much appreciated.

Brian Taylor
Manchester, England.





Peorthuk

Quote:

Originally Posted by Co-op Bank (Post 516236)
Hello,

I have a list of data with three columns, these are 'Period', 'Area' and
'Cost'.

I want to pivot to show the area's listed down vertically, the period
horizontally across and the 'Grand Total' inserted in the pivot table to give
an average of the periods instead of the sum. Is this possible?

Please advise, much appreciated.

Brian Taylor
Manchester, England.

Hi Brian,

You can do it creating a calculated field in a Pivot Table created with Powerpivot.
You need to write the calculation in DAX.

However, the correct result depends on how you present the data on the Pivot Table.

Best,

Paolo


All times are GMT +1. The time now is 07:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com