dbTalk Databases Forums  

Currentmember, level test

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


Discuss Currentmember, level test in the microsoft.public.sqlserver.olap forum.



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

Default Currentmember, level test - 11-04-2004 , 07:56 AM






When having a dimension with 5 levels I want a formula to work from top to
level 3 ... but to have no effect on level 4-5( the bottom levels)

How to ?




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

Default RE: Currentmember, level test - 11-04-2004 , 08:28 AM






Hello Michael,
try this against Foodmart within the MDX Sample Application:


with member
measures.Lvl1toLvl3 as
'iif(customers.currentmember.level.ordinal<=3,99,N ULL)'
select customers.allmembers on 0,
{measures.Lvl1toLvl3} on 1
from sales

HTH
Jörg


"michael vardinghus" wrote:

Quote:
When having a dimension with 5 levels I want a formula to work from top to
level 3 ... but to have no effect on level 4-5( the bottom levels)

How to ?





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.