dbTalk Databases Forums  

Cube returns dimension from whole table, not from query?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Cube returns dimension from whole table, not from query? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Vadim Rapp
 
Posts: n/a

Default Cube returns dimension from whole table, not from query? - 07-28-2005 , 01:01 PM






Hello,

in excel, I get data from sql server 2k. I create a query like this:

select ... from tblCustomers, tblSelection where tblCustomers.customerid =
tblSelection.id


The table tblCustomers has thousands of customer id's; but the table
"tblSelection" has only a few - those that need to be included in this
particular Excel report. When I run the query in MS Query, it works
correctly, i.e. it returns only the selected customers.

However, then I create OLAP cube in MS Query, save it as file, and return
the cube to Excel. In the resulting pivot table, Customers include not the
selected few, but all customers from tblCustomers .

Why is this happening and how to draw from the server only what's in the
query?


thanks,

Vadim Rapp


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.