dbTalk Databases Forums  

How to get Current member value

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


Discuss How to get Current member value in the microsoft.public.sqlserver.olap forum.



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

Default How to get Current member value - 04-18-2006 , 05:22 PM






Hi

Need help
following expression give

[Experience].CURRENTMEMBER.LEVEL.NAME

name of level, is there any way to get value on this level.


Thanks
kalyan


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

Default Re: How to get Current member value - 04-18-2006 , 06:00 PM






Hi Kalyan,

Can you clarify what you mean by "get value on this level"? If you have
an example, that would help. You can get all members at a level, if
that's what you're looking for:

[Experience].CURRENTMEMBER.LEVEL.Memmbers


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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

Reply With Quote
  #3  
Old   
Kalyan
 
Posts: n/a

Default Re: How to get Current member value - 04-19-2006 , 09:55 AM



Thanks Deepak,

Here is my situation,

I have following measure

QTY_YES, QTY_NO, QTY_UNK and


Dimension : Chargable (All),Y , N or U



IF Chargable

I want to know

(All) (QTY_YES+QTY_NO+QTY_UNK)/1000000

Y QTY_YES/1000000
N QTY_NO/1000000
U QTY_UNK/1000000



Can you help me how to create calculated measure for above scenario ?


Thanks in advance

Kalyan


"Deepak Puri" wrote:

Quote:
Hi Kalyan,

Can you clarify what you mean by "get value on this level"? If you have
an example, that would help. You can get all members at a level, if
that's what you're looking for:

[Experience].CURRENTMEMBER.LEVEL.Memmbers


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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


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

Default Re: How to get Current member value - 04-19-2006 , 10:23 PM



Kalyan,

It sounds like QTY_YES, QTY_NO, QTY_UNK are 3 separate cube measures. In
that case, it might be simpler to have just one measure like QTY, from
which these 3 could be derived. Anyway, you could combine these
measures, using case (if you're using AS 2005) or iif, in a calculated
measure:

Quote:
iif([Chargable].CurrentMember is [Chargable].[Y],
[Measures].[QTY_YES],
iif([Chargable].CurrentMember is [Chargable].[N],
[Measures].[QTY_NO],
iif([Chargable].CurrentMember is [Chargable].[u],
[Measures].[QTY_UNK], [Measures].[QTY_YES] +
[Measures].[QTY_NO] + [Measures].[QTY_UNK])))
/ 1000000
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.