SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 SSAS SORT ISSUE
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

v_kash
Starting Member

45 Posts

Posted - 11/16/2012 :  11:28:03  Show Profile  Send v_kash a Yahoo! Message  Reply with Quote
Hello: Am somewhat new to SSAS. My issue is the sort order when I process the cube and bring in the 'calendar month'. It sorts the months alphabetically, not numerically. In my Time Dimension table, the two 'month' columns I have are Calendar Month Number and Calendar Month Name. The other issue is when i bring in the Calendar Month Number, it sorts it by 1, 10, 11, 12,2,3,4,5,6,7,8,9. It should be 1,2,3,4,5,6,7,8,9,10,11,12. What is the BEST way to get the month columns sorted correctly? I've searched a few forums, and there are different 'ways' to address this. Just looking for a detailed explanation on what to do as I am new to this!!

Thanks!!

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 11/16/2012 :  23:11:12  Show Profile  Reply with Quote
you need to set Key field as CalendarMonthNumber for dimension and Name as Calendar Month Name. Then set OrderByAttribute property as Key

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

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000