dbTalk Databases Forums  

Last Period as Default Member

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


Discuss Last Period as Default Member in the microsoft.public.sqlserver.olap forum.



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

Default Last Period as Default Member - 12-01-2003 , 07:54 AM






Hi,

I have a Time dimension(Year and Month) in which I want
to use the last period as Default Member. I know I can
use Tail to solve this, but I can't figure out how the
syntax should be.

Please help!

Reply With Quote
  #2  
Old   
Igor Krupitsky
 
Posts: n/a

Default Re: Last Period as Default Member - 12-01-2003 , 08:16 AM






Tail( Filter([Time].[Month].Members, NOT
IsEmpty(Time.CurrentMember)),1).Item(0)

should give you the last non empty month.


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

Quote:
Hi,

I have a Time dimension(Year and Month) in which I want
to use the last period as Default Member. I know I can
use Tail to solve this, but I can't figure out how the
syntax should be.

Please help!



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.