dbTalk Databases Forums  

first child

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


Discuss first child in the microsoft.public.sqlserver.olap forum.



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

Default first child - 08-26-2003 , 01:16 PM







Hi



I know how to get a first child of a member. member.FIRSTCHILD.

My question is how can I get a first child of a member at a specified

level.



for example if i have hirarchy like



year

quarter

month

week

day



how can i write mdx to get the first child of 1998 at week level.



Thanks


--
Posted via http://dbforums.com

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

Default first child - 08-26-2003 , 03:10 PM






Using the OpeningPeriod function. In your case, you would
write:

openingperiod([Week],[1998])

HTH,
Brian
www.geocities.com/brianaltmann/olap.html

Quote:
-----Original Message-----

Hi



I know how to get a first child of a member.
member.FIRSTCHILD.

My question is how can I get a first child of a member at
a specified

level.



for example if i have hirarchy like



year

quarter

month

week

day



how can i write mdx to get the first child of 1998 at
week level.



Thanks


--
Posted via http://dbforums.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.