dbTalk Databases Forums  

Strange behavior when executing MDX query against Finance cube found on Adventure Works DW database

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


Discuss Strange behavior when executing MDX query against Finance cube found on Adventure Works DW database in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
joshkpeng@hotmail.com
 
Posts: n/a

Default Strange behavior when executing MDX query against Finance cube found on Adventure Works DW database - 01-25-2006 , 06:33 PM






Hi -

I am getting unexpected results when I return the members from the
Filter Axis of a CellSet opened off the Adventure Works DW database
located on an Analysis Services 2005 server when using a client program
I had written. The program is written in C++ and uses ADO MD.

My provider string is Provider=MSOLAP.3;Data Source=9.30.168.131.

I opened the CellSet using the query "Select from [Finance]"

After performing the following calls:

spSlicerAxis = spCellset->GetFilterAxis();
spPositions = spSlicerAxis->GetPositions();
spPosition = spPositions->GetItem(0L);
spMembers = spPosition->GetMembers();
long memberCount = spMembers->GetCount();

I get a member count of 173 which I interpret as the single tuple found
in the filter axis from the result of executing my above query contains
173 members.

The 173 members consists of the root members for each hierarchy found
in the Adventure Works DW database.

Is this behavior correct?

I would have hoped that the CellSet would only return the members from
the hierarchies that are found in the Finance perspective. I was
expecting that the tuple would contain 25 members and not 173.

My Adventure Works DW database is straight from the CD. I did not
change anything.

Is anyone else seeing strange behavior working with Perspectives?


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.