dbTalk Databases Forums  

Descendants behaviour with a multiple selection in background.

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


Discuss Descendants behaviour with a multiple selection in background. in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Hayes
 
Posts: n/a

Default Descendants behaviour with a multiple selection in background. - 11-05-2003 , 08:20 AM






Hello All,

I have a question with regard to the descendants command.
I use the syntax below quite often within cubes. This is
fine while I have the dimension class on rows or columns
or just one member selected on a background dimension,
however if there are multiple members selected on
background, then nothing is returned.

descendants([class].currentmember,[class].[Minor],self)

I understand why this is happening, descendants expects a
member parameter, and .currentmember with multiple
background members returns [Class].[ Aggregation] (in the
example above), which descendants cannot parse, and so the
result of the descendants commant is an empty set {}

My question is, is there anyway around this? Perhaps some
sort of recursive function that returns a set consisting
of multiple descendants commands?

Any advise appreciated.

Mark


Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default Descendants behaviour with a multiple selection in background. - 11-06-2003 , 06:42 AM






As of SP3, descendants accepts a set as a parameter.
By substituting [class].currentmember by the set of
selected members your queries should work.
HTH,
Brian
www.geocities.com/brianaltmann/olap.html


Quote:
-----Original Message-----
Hello All,

I have a question with regard to the descendants command.
I use the syntax below quite often within cubes. This is
fine while I have the dimension class on rows or columns
or just one member selected on a background dimension,
however if there are multiple members selected on
background, then nothing is returned.

descendants([class].currentmember,[class].[Minor],self)

I understand why this is happening, descendants expects a
member parameter, and .currentmember with multiple
background members returns [Class].[ Aggregation] (in the
example above), which descendants cannot parse, and so
the
result of the descendants commant is an empty set {}

My question is, is there anyway around this? Perhaps some
sort of recursive function that returns a set consisting
of multiple descendants commands?

Any advise appreciated.

Mark

.


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.