Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Pivot Table - Calculated Field - Percentage - Rept

Morning,

I am trying to set up a calcualted field in my pivot table (Excel 2007)

What I need is a way to get a total for a column

For illustration

Type Volume
a 200
b 100
c 50
c 50

The toal in the Volume column would be 400

I will then be using the total by dividing the type by the total in a
calculated field to get a percentage

a 50%
b 25%
c 12.5%
d 12.5%

I am aware that there is a percentage capability already buit into the pivot
table, but what I will be doing is using my calculated field in a rept
function to build those little in cell bar graphs, within the pivot table

Something along the lines of =rept("|",Volume/Total_Volume*200)

||||||||||
|||||
|
|

Question is the methodology for the "Total_Volume" part. Had thought it
might involve a form of the getpivotdata function? Or is there a cleaner way?

Or is there a way to use that inbuilt % of total capability within a rept
function?

An alternative is to use the conditional shading relased in 2007 but I
prefer format from the rept function, and some users that may use my
spreadsheet may not always have 2007

Many thanks in advance


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Pivot Table - Calculated Field - Percentage - Rept

You can't use the total sum of a field in a calculated field, so you
won't be able to refer to the total volume.

Perhaps you could do something outside the pivot table, and use
GetPivotData to pull the values.


Blacken wrote:
Morning,

I am trying to set up a calcualted field in my pivot table (Excel 2007)

What I need is a way to get a total for a column

For illustration

Type Volume
a 200
b 100
c 50
c 50

The toal in the Volume column would be 400

I will then be using the total by dividing the type by the total in a
calculated field to get a percentage

a 50%
b 25%
c 12.5%
d 12.5%

I am aware that there is a percentage capability already buit into the pivot
table, but what I will be doing is using my calculated field in a rept
function to build those little in cell bar graphs, within the pivot table

Something along the lines of =rept("|",Volume/Total_Volume*200)

||||||||||
|||||
|
|

Question is the methodology for the "Total_Volume" part. Had thought it
might involve a form of the getpivotdata function? Or is there a cleaner way?

Or is there a way to use that inbuilt % of total capability within a rept
function?

An alternative is to use the conditional shading relased in 2007 but I
prefer format from the rept function, and some users that may use my
spreadsheet may not always have 2007

Many thanks in advance




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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Pivot Table - Calculated Field - Percentage - Rept

Excel 2007 PivotTable
Custom bar graph.
With GetPivotData.
Dynamic auxiliary range.
http://www.mediafire.com/file/mtmkjneojwt/08_10_09.xlsm
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
Calculated percentage field in a pivot table scubadiver Excel Discussion (Misc queries) 0 July 2nd 08 09:59 AM
Calculated Field and Calculated Item in Pivot Table Fred Smith Excel Discussion (Misc queries) 0 March 4th 07 08:15 PM
pivot table formulas for calculated field or calculated item Vicky Excel Discussion (Misc queries) 3 June 6th 06 05:06 AM
Pivot Table Calculated Field- Help Ali Excel Discussion (Misc queries) 2 April 14th 05 06:16 PM
Pivot Table Calculated Field- Help Ali Excel Worksheet Functions 2 April 14th 05 06:16 PM


All times are GMT +1. The time now is 06:16 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"