dbTalk Databases Forums  

How to display the full day in a time dimension

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


Discuss How to display the full day in a time dimension in the microsoft.public.sqlserver.olap forum.



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

Default How to display the full day in a time dimension - 08-06-2004 , 03:31 AM






Hello,

I have build a time dimension through the wizard of analysis services.
I then am able to analyse my cube by day.
But the day is displayed like this : 1 2 3 4 5 6 7 8 --> 31
And I would like to get that : Monday 1 Tuesday 2 ---->

Does someone has an idea ?
My idea would be to modify the member name column syntax.

Best Regards
T


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

Default Re: How to display the full day in a time dimension - 08-06-2004 , 03:39 AM






thierry wrote:

Quote:
Hello,

I have build a time dimension through the wizard of analysis services.
I then am able to analyse my cube by day.
But the day is displayed like this : 1 2 3 4 5 6 7 8 --> 31
And I would like to get that : Monday 1 Tuesday 2 ----

Does someone has an idea ?
My idea would be to modify the member name column syntax.

Best Regards
T

Because

select datename(month, getdate()) returns August
I tried datename(day, getdate()) + ' ' + convert(CHAR,
DateName(day,"dbo"."DIM_TEMPS"."JOUR"))

but select datename(day, getdate()) does not return Friday but 6

Best Regards
T



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

Default Re: How to display the full day in a time dimension - 08-06-2004 , 09:33 AM



Try

select datename(weekday, getdate())

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

"thierry" wrote:

Quote:
thierry wrote:

Hello,

I have build a time dimension through the wizard of analysis services.
I then am able to analyse my cube by day.
But the day is displayed like this : 1 2 3 4 5 6 7 8 --> 31
And I would like to get that : Monday 1 Tuesday 2 ----

Does someone has an idea ?
My idea would be to modify the member name column syntax.

Best Regards
T


Because

select datename(month, getdate()) returns August
I tried datename(day, getdate()) + ' ' + convert(CHAR,
DateName(day,"dbo"."DIM_TEMPS"."JOUR"))

but select datename(day, getdate()) does not return Friday but 6

Best Regards
T



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.