Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Need running percentage in pivot table

I've a pivot table with results:

Washington Michigan
Apples, Oranges, Grapes Total| Apples, Oranges, Grapes Total|
234 345 23 602 198 275 5 478

I want to add a percentage of each fruit in each state

Washington Michigan
Apples, Oranges, Grapes Total| Apples, Oranges, Grapes Total|
234 345 23 602 198 275 5 478
39% 57% 4% 100% 41% 58% 1% 100%

thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Need running percentage in pivot table

My weird solution:

First, my source table is made of unioned queries each consisting of a
'State's' worth of 'Fruits' (each 'State' is an actual column in the source
data so they have to be unioned into one column for the pivot to work as
'State' then 'Fruit')

I had to add a new column to the pivot source data

1/(SELECT COUNT([State]) FROM sourcetable) AS PercentageOfState

and then sum the field in the pivot and format it as a percentage.


"vbasean" wrote:

I've a pivot table with results:

Washington Michigan
Apples, Oranges, Grapes Total| Apples, Oranges, Grapes Total|
234 345 23 602 198 275 5 478

I want to add a percentage of each fruit in each state

Washington Michigan
Apples, Oranges, Grapes Total| Apples, Oranges, Grapes Total|
234 345 23 602 198 275 5 478
39% 57% 4% 100% 41% 58% 1% 100%

thanks in advance.


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 Running Sum % Charlie Bamford Excel Discussion (Misc queries) 10 September 19th 12 08:53 PM
How to add a percentage column in a Pivot Table Victoria[_2_] Excel Discussion (Misc queries) 1 March 13th 07 04:15 PM
Running Total in Pivot Table Lee Excel Discussion (Misc queries) 2 March 6th 07 06:43 AM
Percentage calculation in pivot table Amanda Excel Worksheet Functions 3 November 21st 06 10:46 AM
% of running total in pivot table eggman Excel Discussion (Misc queries) 0 October 13th 05 04:31 PM


All times are GMT +1. The time now is 05:23 PM.

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"