dbTalk Databases Forums  

Date Dimension Question

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


Discuss Date Dimension Question in the microsoft.public.sqlserver.olap forum.



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

Default Date Dimension Question - 08-06-2005 , 04:35 AM






Hi,

Does anyone know of a way that i can create a date dimension that defaults
to the latest date in the dimension and displays that date in the dimension
by default?

They way i currently do it is by using the tail syntax via a calculated
measure. This works fine, but it never displays the actual date, just the
name of the measure, i.e. Latest Day or Yesterday etc...

So i guess i'm asking if there is another way to do this or if i can somehow
dyunamically change the name of the measure to the actual date that it
represents???

Regards
Immy



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

Default Re: Date Dimension Question - 08-08-2005 , 05:14 PM






You can set the Default Member Property of the Time Dimension to the MDX
tail expression you are using:

From SQL 2000 BOL
Quote:
Default Member

Indicates the member that slices the datasets returned by queries when
the dimension is not displayed on an axis and no slicing member in the
dimension is specified. If no default member is specified, and the
dimension's All Level property is Yes, the member indicated by the All
Caption property is the default member. If no default member is
specified, and the dimension's All Level property is No, an arbitrary
member of the highest level is the default member.
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.