PC Review


Reply
Thread Tools Rate Thread

Calculated Item causes undue repitition in pivot table

 
 
Domenick
Guest
Posts: n/a
 
      15th Jan 2010
Lets say I have a pivot table that groups sales totals by company and product
(rows) and years (columns). I want to add a calculated ITEM (a calculated
FIELD wont do the trick) that determines the difference between two
particular years sales. The calculated item performs the calculation as
expected, however now I get rows for products that the company doesn't sell.

Example:

Original Pivot Table:

Sales
Year
Company Product 2007 2008 2009
Florida
Oranges 100 200 250
Lemons 150 250 600
New Jersey
Tomatoes 100 200 300
Corn 400 200 300
California
Tomatoes 500 600 700
Oranges 300 250 200

Then I add the calculated ITEM (2009 - 2007) and the table changes to:

Sales
Year
Company Product 2007 2008 2009 2009-2007
Florida
Oranges 100 200 250 150
Lemons 150 250 600 450
Tomatoes 0 0 0 0
Corn 0 0 0 0
New Jersey
Oranges 0 0 0 0
Lemons 0 0 0 0
Tomatoes 100 200 300 200
Corn 400 200 300 -100
California
Oranges 300 250 200 -100
Lemons 0 0 0 0
Tomatoes 500 600 700 200
Corn 0 0 0 0


As you can see, I now have every single product listed for each company even
though there are no such records for those products in my table. With my real
data, this turns a simple one page pivot table into 390 pages - most of which
is filled with zeros. There does not appear to be a way to supress the
products which have no value.

i have scoured Google and have found many people asking this question and
NONE of them have a solution posted. If ANYONE can tell me how to solve this,
it would be greatly appreciated. Thanks.
 
Reply With Quote
 
 
 
 
walrus
Guest
Posts: n/a
 
      15th Jan 2010
Hey Dom

You must be having blank line items relating to the products in you data.
for example you have a row of record for Tomatoes will blanks in all years.

coz i added a calc field in my pivot and didn't get any repitition

..



"Domenick" wrote:

> Lets say I have a pivot table that groups sales totals by company and product
> (rows) and years (columns). I want to add a calculated ITEM (a calculated
> FIELD wont do the trick) that determines the difference between two
> particular years sales. The calculated item performs the calculation as
> expected, however now I get rows for products that the company doesn't sell.
>
> Example:
>
> Original Pivot Table:
>
> Sales
> Year
> Company Product 2007 2008 2009
> Florida
> Oranges 100 200 250
> Lemons 150 250 600
> New Jersey
> Tomatoes 100 200 300
> Corn 400 200 300
> California
> Tomatoes 500 600 700
> Oranges 300 250 200
>
> Then I add the calculated ITEM (2009 - 2007) and the table changes to:
>
> Sales
> Year
> Company Product 2007 2008 2009 2009-2007
> Florida
> Oranges 100 200 250 150
> Lemons 150 250 600 450
> Tomatoes 0 0 0 0
> Corn 0 0 0 0
> New Jersey
> Oranges 0 0 0 0
> Lemons 0 0 0 0
> Tomatoes 100 200 300 200
> Corn 400 200 300 -100
> California
> Oranges 300 250 200 -100
> Lemons 0 0 0 0
> Tomatoes 500 600 700 200
> Corn 0 0 0 0
>
>
> As you can see, I now have every single product listed for each company even
> though there are no such records for those products in my table. With my real
> data, this turns a simple one page pivot table into 390 pages - most of which
> is filled with zeros. There does not appear to be a way to supress the
> products which have no value.
>
> i have scoured Google and have found many people asking this question and
> NONE of them have a solution posted. If ANYONE can tell me how to solve this,
> it would be greatly appreciated. Thanks.

 
Reply With Quote
 
Domenick
Guest
Posts: n/a
 
      15th Jan 2010
No, definitely no blank lines in the data itself. For example, there are
absolutely NO rows associated with "tomatoes" for "Florida. Remember: This is
a calculated ITEM not a calculated FIELD. Calculated fields work fine,
however I need a calculated item to get the specific calculation I need
(difference between two specific ITEMS within a FIELD).

"walrus" wrote:

> Hey Dom
>
> You must be having blank line items relating to the products in you data.
> for example you have a row of record for Tomatoes will blanks in all years.
>
> coz i added a calc field in my pivot and didn't get any repitition
>
> .
>
>
>
> "Domenick" wrote:
>
> > Lets say I have a pivot table that groups sales totals by company and product
> > (rows) and years (columns). I want to add a calculated ITEM (a calculated
> > FIELD wont do the trick) that determines the difference between two
> > particular years sales. The calculated item performs the calculation as
> > expected, however now I get rows for products that the company doesn't sell.
> >
> > Example:
> >
> > Original Pivot Table:
> >
> > Sales
> > Year
> > Company Product 2007 2008 2009
> > Florida
> > Oranges 100 200 250
> > Lemons 150 250 600
> > New Jersey
> > Tomatoes 100 200 300
> > Corn 400 200 300
> > California
> > Tomatoes 500 600 700
> > Oranges 300 250 200
> >
> > Then I add the calculated ITEM (2009 - 2007) and the table changes to:
> >
> > Sales
> > Year
> > Company Product 2007 2008 2009 2009-2007
> > Florida
> > Oranges 100 200 250 150
> > Lemons 150 250 600 450
> > Tomatoes 0 0 0 0
> > Corn 0 0 0 0
> > New Jersey
> > Oranges 0 0 0 0
> > Lemons 0 0 0 0
> > Tomatoes 100 200 300 200
> > Corn 400 200 300 -100
> > California
> > Oranges 300 250 200 -100
> > Lemons 0 0 0 0
> > Tomatoes 500 600 700 200
> > Corn 0 0 0 0
> >
> >
> > As you can see, I now have every single product listed for each company even
> > though there are no such records for those products in my table. With my real
> > data, this turns a simple one page pivot table into 390 pages - most of which
> > is filled with zeros. There does not appear to be a way to supress the
> > products which have no value.
> >
> > i have scoured Google and have found many people asking this question and
> > NONE of them have a solution posted. If ANYONE can tell me how to solve this,
> > it would be greatly appreciated. Thanks.

 
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, IF function, calculated item versus calculated field NomadPurple Microsoft Excel Misc 1 9th Mar 2010 03:17 PM
Calculated Item in a Pivot Table =?Utf-8?B?RWQ=?= Microsoft Excel Misc 2 21st Jun 2007 10:40 PM
Calculated Field and Calculated Item in Pivot Table Fred Smith Microsoft Excel Misc 0 4th Mar 2007 08:15 PM
Pivot Table Formulas Calculated Item / Calculated Field =?Utf-8?B?VmlrcmFtIERoZW1hcmU=?= Microsoft Excel Programming 2 10th Oct 2006 08:45 AM
pivot table formulas for calculated field or calculated item =?Utf-8?B?Vmlja3k=?= Microsoft Excel Misc 3 6th Jun 2006 05:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 PM.