Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dimitri
 
Posts: n/a
Default Pivot Table - Running Calculation

I wish to add a column in a pivot table that is a running calculation. That
is, it uses values from the previous row and values from the current row. Is
there any way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Pivot Table - Running Calculation

Hi

Assuming you have two fields, Name and Amount.
You have Name as a Row field, and Amount as a Data field.
Drag the Amount Field to the Data area a second time. Double click on it
and choose Options.
In the dropdown for Show Data as, choose Running Total and select Name
as the base field.

If you want the two columns to show side by side, drag the Data button
on the PT to the Total area.

--
Regards

Roger Govier


"Dimitri" wrote in message
...
I wish to add a column in a pivot table that is a running calculation.
That
is, it uses values from the previous row and values from the current
row. Is
there any way to do this?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Dimitri
 
Posts: n/a
Default Pivot Table - Running Calculation

Thanks for this, but it only goes part of the way to solving my problem.
I need to calculate the percentage of one running sum column to another
running sum column.

Based on your example I have the 2 running sum columns. Now I need to insert
a calculated field with the following formula: RunningSum1 / RunningSum2.

The problem is that RunningSum1 and 2 are not available in the dialog box
for creating the calculated field. Only the "base" fields can be selected.

Do you know how to achieve this?
"Roger Govier" wrote:

Hi

Assuming you have two fields, Name and Amount.
You have Name as a Row field, and Amount as a Data field.
Drag the Amount Field to the Data area a second time. Double click on it
and choose Options.
In the dropdown for Show Data as, choose Running Total and select Name
as the base field.

If you want the two columns to show side by side, drag the Data button
on the PT to the Total area.

--
Regards

Roger Govier


"Dimitri" wrote in message
...
I wish to add a column in a pivot table that is a running calculation.
That
is, it uses values from the previous row and values from the current
row. Is
there any way to do this?




  #4   Report Post  
Posted to microsoft.public.excel.misc
Dimitri
 
Posts: n/a
Default Pivot Table - Running Calculation

Thanks for this - but it only tskes me part of the way to my goal.
You have explained to me how I create 2 running sum columns I need.
Now I need to calculate runningsum 1 as a percentage of runningsum2.
The calculated field dialog box only allows you to select the "base" fields
as factors in the calculated field expression. So , how do I perform
calculations using the runningsum fields?

"Roger Govier" wrote:

Hi

Assuming you have two fields, Name and Amount.
You have Name as a Row field, and Amount as a Data field.
Drag the Amount Field to the Data area a second time. Double click on it
and choose Options.
In the dropdown for Show Data as, choose Running Total and select Name
as the base field.

If you want the two columns to show side by side, drag the Data button
on the PT to the Total area.

--
Regards

Roger Govier


"Dimitri" wrote in message
...
I wish to add a column in a pivot table that is a running calculation.
That
is, it uses values from the previous row and values from the current
row. Is
there any way to do this?




  #5   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Pivot Table - Running Calculation

Hi
In that case, I wouldn't use calculated fields in the Pivot Table at
all.
I would make additional columns in my base data, carrying out the
required calculations there, and then add those fields to the data area
in the PT,

--
Regards

Roger Govier


"Dimitri" wrote in message
...
Thanks for this, but it only goes part of the way to solving my
problem.
I need to calculate the percentage of one running sum column to
another
running sum column.

Based on your example I have the 2 running sum columns. Now I need to
insert
a calculated field with the following formula: RunningSum1 /
RunningSum2.

The problem is that RunningSum1 and 2 are not available in the dialog
box
for creating the calculated field. Only the "base" fields can be
selected.

Do you know how to achieve this?
"Roger Govier" wrote:

Hi

Assuming you have two fields, Name and Amount.
You have Name as a Row field, and Amount as a Data field.
Drag the Amount Field to the Data area a second time. Double click on
it
and choose Options.
In the dropdown for Show Data as, choose Running Total and select
Name
as the base field.

If you want the two columns to show side by side, drag the Data
button
on the PT to the Total area.

--
Regards

Roger Govier


"Dimitri" wrote in message
...
I wish to add a column in a pivot table that is a running
calculation.
That
is, it uses values from the previous row and values from the
current
row. Is
there any way to do this?






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pivot table created from another pivot table Kreed Excel Worksheet Functions 6 October 26th 05 04:16 PM
How to get pivot table Time field to appear correctly wccmgr Excel Worksheet Functions 1 August 23rd 05 12:26 AM
Pivot table keeps dupping to another linked pivot table Angus Excel Discussion (Misc queries) 0 August 8th 05 07:48 AM
How to Add a Calculation to a Pivot Table ? Cheryl B. Excel Worksheet Functions 3 July 15th 05 12:01 AM
Pivot table formatting programmer123 Excel Discussion (Misc queries) 4 June 17th 05 12:29 AM


All times are GMT +1. The time now is 04:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"