Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Cube Date issue

Author  Topic 

CanadaDBA

583 Posts

Posted - 2012-04-03 : 09:41:36
I have a cube with a Date dimension table; dDate. This table has a column called Day and is datetime. My issue is that the Day column shows as 'Character' in SAP Business Object.

I used Excel and the Day is shown as text too; i.e. if I want to sort the column in Excel, it offers sort A to Z rather than say earliest to oldest.

Why I get this behavior? Any suggestion to resolve the issue is greatly appreciated.


Canada DBA

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2012-04-03 : 10:13:51
On your dimensions in SSAS, what are the properties of this field? Is the datatype there a datetime?
Go to Top of Page

CanadaDBA

583 Posts

Posted - 2012-04-03 : 10:22:19
From the Day column properties:

IsAggregateable: True
OrderBy: Key

Name: Day
Type: Date
Usage: Key
OrderByAttribute:

KeyColumns: DimDates.Day (Date)
NameColumn: DimDates.Day (WChar)

Let me know if you need anything else. Thanks!


Canada DBA
Go to Top of Page

CanadaDBA

583 Posts

Posted - 2012-04-03 : 14:57:51
I read somewhere that says "SSAS uses the name column as a label to display to the user instead of displaying the key column". Is this related to my issue?

I tried to change the type of NameColumn from WChar to Date but got an error saying "The 'Date' data type is not allowed for the 'NameColumn' property; 'WChar' should be used.". :(

Canada DBA
Go to Top of Page

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2012-04-04 : 03:54:12
Hmm, I think it is related, not 100% sure ont he way around it though.

When you view it in BIDS or EM, does it sort properly?
Go to Top of Page

influent
Constraint Violating Yak Guru

367 Posts

Posted - 2013-03-14 : 19:26:43
I"m having the same problem, wish I knew what the OP did...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-03-15 : 13:11:59
we did month sorting similarly by adding a sortkey field and using it for sorting.
see below for details

http://technet.microsoft.com/en-us/library/ms166763.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -