dbTalk Databases Forums  

How to get a distinct dimension member through MDX?

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


Discuss How to get a distinct dimension member through MDX? in the microsoft.public.sqlserver.olap forum.



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

Default How to get a distinct dimension member through MDX? - 07-05-2006 , 04:03 PM






I have a process dimension that has 4 levels.

Process Level

Task Level

Status Level

Queue Level



Here is an example of the data:

Process A, Task A, Status A, Queue A

Process A, Task A, Status B, Queue A

Process A, Task A, Status C, Queue B

Is there a way to use the Distinct function in MDX to get a listing
like:

Queue A

Queue B

Instead of getting Queue A listed twice?



Thanks.


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: How to get a distinct dimension member through MDX? - 07-07-2006 , 12:05 PM






My first guess is, although i haven' t fully researched this, is no,
because MASA will look upon the two as being difefrent members.

Maybe you could consider putting the queue in a different dimension,
that would enable you to select just A.

Hope this helps,

GJ


Reply With Quote
  #3  
Old   
Deepak Puri
 
Posts: n/a

Default Re: How to get a distinct dimension member through MDX? - 07-08-2006 , 12:29 AM



Maybe the MDX Extract() function will meet your needs - it eliminates
duplicates in the result set:

http://msdn2.microsoft.com/en-us/library/ms145980.aspx
Quote:
Extract (MDX)

Returns a set of tuples from extracted dimension elements.
...
Remarks

The Extract function returns a set that consists of tuples from the
extracted Dimension_Expression elements. This function always removes
duplicate tuples.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.