SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Time Dimension


Time Dimension

Author
Message
stevenplee
stevenplee
Old Hand
Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)

Group: General Forum Members
Points: 302 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
RonKyle
RonKyle
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6748 Visits: 3620
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.



stevenplee
stevenplee
Old Hand
Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)Old Hand (302 reputation)

Group: General Forum Members
Points: 302 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
RonKyle
RonKyle
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6748 Visits: 3620
Check the sort order for that property. It's probably set to Name, which is the default. Change it to Key.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search