dbTalk Databases Forums  

determine the current level

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


Discuss determine the current level in the microsoft.public.sqlserver.olap forum.



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

Default determine the current level - 01-13-2004 , 04:22 PM






Hi:

Any one know how to determine the current level of the
given Dimensional by using MDX.

Suppose I have [Time]Dimensional that has three level
year, month, and day, and I want to create a calculated
member to determine the current level of [Time]
Dimensional and return the state as Integer.

For example,if use drill drown the [Time] Dimensional to
month, then I want to get 1.

Thanks,

Kent Kent

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: determine the current level - 01-13-2004 , 05:14 PM






Something like this...

IIF(MyDim.CurrentMember.Level IS [MyLevel],
x,
y )

public @ the domain below
www.tomchester.net

"Kent Kent" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi:

Any one know how to determine the current level of the
given Dimensional by using MDX.

Suppose I have [Time]Dimensional that has three level
year, month, and day, and I want to create a calculated
member to determine the current level of [Time]
Dimensional and return the state as Integer.

For example,if use drill drown the [Time] Dimensional to
month, then I want to get 1.

Thanks,

Kent Kent



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.