Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Pivot Tables- SQL Alias' & Field Lists

I have two questions about Pivot Tables. To generate these pivot tables, I
am querying an Informix Database through an ODBC link. I'm using Excel 2003
and Windows XP SP3.

1) I'm querying the database for sales data for a customer that has
multiple regions. I made the query for the SOCA region and made my pivot
table with no problems. When I click on the drop down to select specific
stores I only see stores in the SOCA region (which is what I want). I then
made a copy of the worksheet the pivot table is on and edited the query so
that it only returns NOCA region info. However, when I go to select
individual stores in the pivot table, I see ALL the stores, not just NOCA
region stores. I see stores from SOCA region, as well as SDAZ, NW and TX
regions.

How can I get the drop down to only show stores that were returned by the
query. (If I select an SDAZ store on the NOCA pivot Table, I get no data.)

2) The field names in the database are not very intuitive. How can add
alias field names to my SQL query so that the fields displayed on the pivot
table have user-friendly titles? I have tried:
SELECT invhis.inhcid as Customer, ....
SELECT invhis.inhcid as 'Customer', ....
SELECT invhis.inhcid as "Customer", ....
SELECT invhis.inhcid Customer, ....
SELECT invhis.inhcid 'Customer', ....
SELECT invhis.inhcid "Customer", ....
but all of these return a syntax error. Is there another syntax that works?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Pivot Tables- SQL Alias' & Field Lists

I have figured out the answer to question 1. Apparently, when you copy a
pivot table to a new worksheet, it "remembers" all the field values it ever
had, even if you change the criteria of the underlying query.

I'm still looking for an answer to question 2, if anyone can help.
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
Reorder pivot table field lists Josh Johansen Excel Discussion (Misc queries) 2 June 19th 07 12:22 PM
The Pivot Table Field Lists Do not Display Adam H. Excel Discussion (Misc queries) 1 June 12th 06 03:34 PM
Pivot tables and drop-down lists lorentzen New Users to Excel 2 April 23rd 06 11:23 PM
Pivot Tables with Multiple Lists LPS Excel Discussion (Misc queries) 2 November 27th 05 12:01 PM
Can you use alias' for 'groups' in pivot tables ? Alias in pivot table Excel Discussion (Misc queries) 5 August 6th 05 09:53 PM


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