dbTalk Databases Forums  

Putting days of the week in order

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


Discuss Putting days of the week in order in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jpuls@sentinel.com
 
Posts: n/a

Default Putting days of the week in order - 02-16-2006 , 02:24 PM






I have a cube with a dimension DayOfWeek, which has values like
"Monday" or "Tuesday". I'd like to put these in Sunday through Saturday
order when somone views the data in a pivot table. It's SQL Server 2000
Analysis Services. How can I do this?

Thanks!

Jim


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

Default Re: Putting days of the week in order - 02-16-2006 , 04:06 PM






The easiest way to do this is to have your DoW Dimension table look
something like this:

DoWID DayName

1 Sunday
2 Monday
3 Tuesday
4 Wednesday
5 Thursday
6 Friday
7 Saturday

Then when you create the dimension off of the table, set the "Order By"
property to Key instead of Name. That will order the dimension how you
like it.

HTH

V


Reply With Quote
  #3  
Old   
jpuls@sentinel.com
 
Posts: n/a

Default Re: Putting days of the week in order - 02-17-2006 , 09:06 AM



Voorshwa,

Thanks! This was just what I was looking for.

Jim

Voorshwa wrote:
Quote:
The easiest way to do this is to have your DoW Dimension table look
something like this:

DoWID DayName

1 Sunday
2 Monday
3 Tuesday
4 Wednesday
5 Thursday
6 Friday
7 Saturday

Then when you create the dimension off of the table, set the "Order By"
property to Key instead of Name. That will order the dimension how you
like it.

HTH

V


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.