#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SthOzNewbie
 
Posts: n/a
Default GETPIVOTDATA Bug

I have a pivot table with Week No as a column field. The info it retrieves is
based on data produced by the WEEKNUM function in another sheet. I have a
GETPIVOTDATA function which retrieves info from the pivot table for a
particular week number which works fine. The column field is currently
filtered to select only weeks 9,10,11,12 and 13.

If I change the filter to include weeks 5,6,7 and 8 and change the
GETPIVOTDATA function to look for information in the week 8 column, it
returns #N/A. I have tried everything I can think of to try to get this to
work to no avail. The only fix is to create a new pivot table from scratch
which includes weeks 5,6,7 and 8.

It almost seems that whatever method the GETPIVOTDATA uses to reference the
data it retrieves the original configuration of fields only. Once you change
the pivot table fields the function loses track of what is going on.

As further evidence, to the new pivot table I created to be able to retrieve
data for weeks 5,6,7 and 8, I removed the Week No field and replaced it with
a Month No field and change the GETPIVOTDATA function to retrieve the data in
the pivot table by month. Once again this returned #N/A. I had to create
another new pivot table with the Month No field in there from the beginning
for the GETPIVOTDATA function to work.

Is this a bug or am I missing something ?

BTW I have XL2000 SP3.

Regards,

IK
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SthOzNewbie
 
Posts: n/a
Default GETPIVOTDATA Bug

Well, well, well. As soon as I lay the proverbials on the line making
statements such as below I go away and mess around some more and get it to
work.:-<

I changed the formula which produces the week number to 2 digits
(TEXT(WEEKNUM(A1,1),"00")) and the GETPIVOTDATA function works like a charm.

hmmmm - "patience grasshopper"..................

"SthOzNewbie" wrote:

I have a pivot table with Week No as a column field. The info it retrieves is
based on data produced by the WEEKNUM function in another sheet. I have a
GETPIVOTDATA function which retrieves info from the pivot table for a
particular week number which works fine. The column field is currently
filtered to select only weeks 9,10,11,12 and 13.

If I change the filter to include weeks 5,6,7 and 8 and change the
GETPIVOTDATA function to look for information in the week 8 column, it
returns #N/A. I have tried everything I can think of to try to get this to
work to no avail. The only fix is to create a new pivot table from scratch
which includes weeks 5,6,7 and 8.

It almost seems that whatever method the GETPIVOTDATA uses to reference the
data it retrieves the original configuration of fields only. Once you change
the pivot table fields the function loses track of what is going on.

As further evidence, to the new pivot table I created to be able to retrieve
data for weeks 5,6,7 and 8, I removed the Week No field and replaced it with
a Month No field and change the GETPIVOTDATA function to retrieve the data in
the pivot table by month. Once again this returned #N/A. I had to create
another new pivot table with the Month No field in there from the beginning
for the GETPIVOTDATA function to work.

Is this a bug or am I missing something ?

BTW I have XL2000 SP3.

Regards,

IK

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
getpivotdata Mac Excel Worksheet Functions 5 February 27th 06 12:25 AM
"Best Practices" Use of GetPivotData Function Johnny Meredith Excel Worksheet Functions 0 December 13th 05 12:22 AM
Copy GetPivotData Outside Report Elaine Excel Worksheet Functions 3 April 11th 05 04:35 AM
Getpivotdata update issues? Calgarychris Excel Discussion (Misc queries) 0 March 30th 05 02:59 AM
how to convert GETPIVOTDATA from excel 2000 to excel 2002... Need_help_on_excel Excel Worksheet Functions 1 March 15th 05 02:08 AM


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