dbTalk Databases Forums  

Can the date format be specified for dimension levels?

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


Discuss Can the date format be specified for dimension levels? in the microsoft.public.sqlserver.olap forum.



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

Default Can the date format be specified for dimension levels? - 01-19-2006 , 04:32 PM






If I have date data 2005-01-01, 2005-02-01, 2005-03-01 in Excel and use this
as the X axis for a chart, I can format it as "mmm-yy" and the axis will
display Jan-05, Feb-05, Mar-05.

How do I achieve the same result using the OWC chart component and cube data
source?

If I drag the date dimension level from the field list to the category axis
containing the same data, I don't have the equivalent date formatting options.

If I create a named calculation Left(Month,3)+'-'+Year then the members list
in alphabetical order instead of date order i.e. Feb-05 appears before Jan-05
on the axis.

Any suggestions appreciated,
David

Reply With Quote
  #2  
Old   
David Norman
 
Posts: n/a

Default RE: Can the date format be specified for dimension levels? - 01-25-2006 , 07:59 PM






Figured out how to get the members to appear in date order - it's not as
simple as setting attribute orderby properties. The steps I took are as
follows:

open the time dim
dimension:add business intelligence
specify attribute ordering
for my mmm-yy attribute, select ordering attribute = new attribute
select a suitable ordering attribute e.g. one with date data type
new attribute appears: "ordering mmm-yy on
whateverorderingattributeyouselected"
next and finish

Hope that helps somebody
David

"David Norman" wrote:

Quote:
If I have date data 2005-01-01, 2005-02-01, 2005-03-01 in Excel and use this
as the X axis for a chart, I can format it as "mmm-yy" and the axis will
display Jan-05, Feb-05, Mar-05.

How do I achieve the same result using the OWC chart component and cube data
source?

If I drag the date dimension level from the field list to the category axis
containing the same data, I don't have the equivalent date formatting options.

If I create a named calculation Left(Month,3)+'-'+Year then the members list
in alphabetical order instead of date order i.e. Feb-05 appears before Jan-05
on the axis.

Any suggestions appreciated,
David

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.