I searched the Internet and StackOverflow and was not able to find an answer to this issue. I created an OLAP cube via SSAS with a date dimension. One of the attributes of the dimension is Activity Calendar Month. The NameColumn
value is formatted like "January 2015", "February 2015", etc.
The KeyColumns
is set as a DATE value type for the first of the month, for each month. Example, NameColumn
value "January 2015" = KeyColumns
value "1/1/2015", "February 2015" = "2/1/2015", etc.
The ValueColumn
is also set to first of the month date (i.e. '1/1/2015') in case Excel was using that for sorting.
When I view the Calendar Month dimension in an Excel 2013 workbook, it initially loads with the correct sorting. Below is a sample:
January 2015
February 2015
March 2015
April 2015
May 2015
June 2015
July 2015
August 2015
September 2015
However, I want to be able to right-click on the field in Excel and select Sort > Sort Z to A and sort the months descending. When I currently do this, I get back:
September 2015
May 2015
March 2015
June 2015
July 2015
January 2015
February 2015
August 2015
April 2015
To me, it appears the Excel will only sort based on the alphanumeric value set in the dimension's NameColumn
. Also, if I drop the years from the month values (i.e. "January" instead of "January 2015"), Excel seems to understand that it is a month and sorts the months correctly.
Screen Shot of Dimension Settings
Questions
Does Excel have the capability to sort on values outside of
NameColumn
, such asKeyColumns
orValueColumn
, where theNameColumn
does not use standard month names (i.e. "January", "February", etc.)?If yes, then what might I be missing in the SSAS dimension setup to make this work?
Calendar Month
byMonth Number Of Year
– alejandro zuleta