Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Time Dimension Expand / Collapse
Author
Message
Posted Sunday, September 26, 2010 8:22 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, February 18, 2016 3:23 PM
Points: 76, Visits: 307
I am using a SSAS Cube as my data source for a SSRS report. In the cube I have created a Time dimension which has the following attributes, Date, Year, Quarter, Month, weekofyear, weekofmonth....

When I browse the cube in SSAS the weekofYear field seems to sort correctly. However, in the reporting services when I browse the report it appears to be treating the weeknum field as a string. I know their's a solution for this but I can remember how to correct this.

Your help will be appreciated.

Thanks
Post #993417
Posted Monday, September 27, 2010 11:47 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 8:46 AM
Points: 1,093, Visits: 2,974
SSAS should know it's an integer as long as the source field is an integer. What exactly is the issue? The order of the weeks?

Also, recommend you change the name of your dimension to Date. You may one day add a Time dimension consisting of minutes and hours.



Post #993864
Posted Monday, September 27, 2010 3:38 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, February 18, 2016 3:23 PM
Points: 76, Visits: 307
Thanks for your reply..SSAS does recognize that it's an integer. Its when I try to sort on dimension attribute in SSRS that it's looks at the data as a string
Post #994082
Posted Tuesday, September 28, 2010 4:28 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 8:46 AM
Points: 1,093, Visits: 2,974
Check the sort order for that property. It's probably set to Name, which is the default. Change it to Key.


Post #994302
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse