Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculated Field in Pivot Table Based On Totals-and hide a data fi

I have a pivot table that looks something like this:

Customer CategoryA CategoryB TotalSale
TotalWeight
NetSale ExtWeight NetSale ExtWeight

ABC 1000 100 2000 100 3000
200

What I would ideally like to do is 2 things:
1, hide the ExtWeight column but still show the TotalWeight on the right
2, i want to create a calculated field on the right of the TotalWeight that
would be the average of the totalsale to totalweight (totalsale/totalweight)
which would be the avg sale/weight.

Any suggestions
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Calculated Field in Pivot Table Based On Totals-and hide a data fi

Regarding the second of these - Within the pivot table you can't have a field
to the right of the grand total column, if thats what the Total Sales column
is.

Regarding the other one if you want you can send me a sample file and I will
try to see what I can do. My name, no spaces @SBCGlobal.Net
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Leo Demarce" wrote:

I have a pivot table that looks something like this:

Customer CategoryA CategoryB TotalSale
TotalWeight
NetSale ExtWeight NetSale ExtWeight

ABC 1000 100 2000 100 3000
200

What I would ideally like to do is 2 things:
1, hide the ExtWeight column but still show the TotalWeight on the right
2, i want to create a calculated field on the right of the TotalWeight that
would be the average of the totalsale to totalweight (totalsale/totalweight)
which would be the avg sale/weight.

Any suggestions

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Calculated Field in Pivot Table Based On Totals-and hide a data fi

Hi

If you omit ext weight from PT, then you won't get Total Weight.
You could just Hide those columns totally on the Sheet, so it didn't
display.

As for the second part you need to use the GetPivotData function.
Using direct cell references like =F5/G5 copied down, will work, but they
are likely to become incorrect when the PT is refreshed.

For help on how to use the GetPivotdata function, take a look at
http://www.contextures.com/xlPivot06.html
--
Regards
Roger Govier

"Leo Demarce" wrote in message
...
I have a pivot table that looks something like this:

Customer CategoryA CategoryB TotalSale
TotalWeight
NetSale ExtWeight NetSale ExtWeight

ABC 1000 100 2000 100 3000
200

What I would ideally like to do is 2 things:
1, hide the ExtWeight column but still show the TotalWeight on the right
2, i want to create a calculated field on the right of the TotalWeight
that
would be the average of the totalsale to totalweight
(totalsale/totalweight)
which would be the avg sale/weight.

Any suggestions


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Calculated Field in Pivot Table Based On Totals-and hide a datafi

Excel 2007
Pivot Table,
Auxiliary Table with GetPivotData() resizes
dynamically with new data or refresh.
Shown Share file he
http://www.mediafire.com/file/umot0atjmjy/02_06_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 Field in Pivot Table Based on Two Counted Fields cmlits Excel Discussion (Misc queries) 1 March 30th 06 05:44 AM
Totals of calculated field in pivot table give incorrect results Jake Excel Worksheet Functions 6 January 12th 06 06:15 PM
pivot table - hide details but show subtotal for calculated field tenneym Excel Discussion (Misc queries) 1 February 9th 05 03:07 AM
How to create a calculated field formula based on Pivot Table resu dha17 Excel Discussion (Misc queries) 1 December 15th 04 05:39 AM
Pivot table help:calculated field based on previous consecutive va martin Excel Discussion (Misc queries) 0 December 9th 04 08:33 PM


All times are GMT +1. The time now is 05:45 AM.

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

About Us

"It's about Microsoft Excel"