PC Review


Reply
Thread Tools Rate Thread

Add result feilds to a pivot table

 
 
=?Utf-8?B?QWFyb24=?=
Guest
Posts: n/a
 
      13th Aug 2007
I am powering a pivot chart with a pivot table. The pivot table has a sum of
sales and a sum of profit for each month. Can I create a result feild in the
pivot table that divides the sum of profit by the sum of sales?

Of course I could do this outside the pivot table, but I want to do it in
the pivot table so the results are captured in the chart and are updated as
other variables like the pivot table page are changed on the chart. Not sure
if VBA can help or some other way?
 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      13th Aug 2007
You can create a calculated field:
Select a cell in the pivot table
On the PivotTable toolbar, click PivotTable, then click, then choose
Formulas>Calculated Field
Type a name for the field
In the formula box, enter a formula to divide profit by sales, e.g.:
=Profit/Sales
Click OK
In the pivot table, format the calculated field that was created.

Aaron wrote:
> I am powering a pivot chart with a pivot table. The pivot table has a sum of
> sales and a sum of profit for each month. Can I create a result feild in the
> pivot table that divides the sum of profit by the sum of sales?
>
> Of course I could do this outside the pivot table, but I want to do it in
> the pivot table so the results are captured in the chart and are updated as
> other variables like the pivot table page are changed on the chart. Not sure
> if VBA can help or some other way?



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
=?Utf-8?B?QWFyb24=?=
Guest
Posts: n/a
 
      13th Aug 2007
Perfect! I named the field "margin" but it shows up as "Sum of Margin". It
really is not the sum of margins. How do I get rid of the "Sum of"?

"Debra Dalgleish" wrote:

> You can create a calculated field:
> Select a cell in the pivot table
> On the PivotTable toolbar, click PivotTable, then click, then choose
> Formulas>Calculated Field
> Type a name for the field
> In the formula box, enter a formula to divide profit by sales, e.g.:
> =Profit/Sales
> Click OK
> In the pivot table, format the calculated field that was created.
>
> Aaron wrote:
> > I am powering a pivot chart with a pivot table. The pivot table has a sum of
> > sales and a sum of profit for each month. Can I create a result feild in the
> > pivot table that divides the sum of profit by the sum of sales?
> >
> > Of course I could do this outside the pivot table, but I want to do it in
> > the pivot table so the results are captured in the chart and are updated as
> > other variables like the pivot table page are changed on the chart. Not sure
> > if VBA can help or some other way?

>
>
> --
> Debra Dalgleish
> Contextures
> http://www.contextures.com/tiptech.html
>
>

 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      13th Aug 2007
Click on the cell that says Sum of Margin.
Type Margin<space>, and then press Enter
You can't use a heading that's exactly the same as the field name
(Margin), so adding the space character makes it look like Margin, but
slightly different.


Aaron wrote:
> Perfect! I named the field "margin" but it shows up as "Sum of Margin". It
> really is not the sum of margins. How do I get rid of the "Sum of"?
>
> "Debra Dalgleish" wrote:
>
>
>>You can create a calculated field:
>>Select a cell in the pivot table
>>On the PivotTable toolbar, click PivotTable, then click, then choose
>>Formulas>Calculated Field
>>Type a name for the field
>>In the formula box, enter a formula to divide profit by sales, e.g.:
>> =Profit/Sales
>>Click OK
>>In the pivot table, format the calculated field that was created.
>>
>>Aaron wrote:
>>
>>>I am powering a pivot chart with a pivot table. The pivot table has a sum of
>>>sales and a sum of profit for each month. Can I create a result feild in the
>>>pivot table that divides the sum of profit by the sum of sales?
>>>
>>>Of course I could do this outside the pivot table, but I want to do it in
>>>the pivot table so the results are captured in the chart and are updated as
>>>other variables like the pivot table page are changed on the chart. Not sure
>>>if VBA can help or some other way?

>>
>>
>>--
>>Debra Dalgleish
>>Contextures
>>http://www.contextures.com/tiptech.html
>>
>>

>



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table does not Filter Result Warm FL Microsoft Excel Crashes 1 16th Feb 2010 07:05 PM
Pivot table strange result prufrock Microsoft Excel Misc 0 23rd Feb 2007 04:40 PM
add result column to pivot table kenw100 Microsoft Excel Misc 1 5th Jul 2004 11:46 PM
Strange result in pivot table Ankan Microsoft Excel Misc 1 27th May 2004 12:58 AM
filtering pivot table result Soe Microsoft Excel Worksheet Functions 0 16th Feb 2004 04:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 AM.