按照连接到SSAS OLAP多维数据集的Excel中的键进行排序

按照连接到SSAS OLAP多维数据集的Excel中的键进行排序

问题描述:

我搜索了Internet和*,无法找到此问题的答案。我通过带有日期维度的SSAS创建了一个OLAP多维数据集。维度的一个属性是活动日历月。 NameColumn 的格式格式如2015年1月,2015年2月等。

I searched the Internet and * 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.

KeyColumns 设置为每月第一个月的DATE值类型。例如 NameColumn valueJanuary 2015= KeyColumns value1/1/2015,2015年2月= 2/1/2015等。

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.

ValueColumn 也设置为月初一(例如1/1/2015),以防Excel正在使用排序。

The ValueColumn is also set to first of the month date (i.e. '1/1/2015') in case Excel was using that for sorting.

当我查看Excel中的日历月份维度2013工作簿,它最初加载正确的排序。以下是一个示例:

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

但是,我希望能够在Excel中右键单击该字段,然后选择排序>排序Z到,然后排序月份。当我目前这样做的时候,我回来了:

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

对我来说,Excel只会根据维度的 NameColumn 中设置的字母数字值进行排序。此外,如果我从月份价值(即1月而不是2015年1月)下降年份,Excel似乎明白这是一个月,并正确排列这些月份。

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.


  • Excel有能力对 NameColumn $ c $之外的值进行排序c>,例如 KeyColumns ValueColumn 其中 NameColumn 不使用标准月份名称(即1月,2月等)?

  • Does Excel have the capability to sort on values outside of NameColumn, such as KeyColumns or ValueColumn, where the NameColumn does not use standard month names (i.e. "January", "February", etc.)?

如果是,那么

你可以在这里阅读最后一段:
https://olappivottableextend.codeplex.com/wikipage?title=Show%20Property%20as%20Caption&referringTitle=Home

Can you read the last paragraph here: https://olappivottableextend.codeplex.com/wikipage?title=Show%20Property%20as%20Caption&referringTitle=Home


内置的显示属性在报告功能的一个优点是成员属性通过他们的正确的数据类型。所以datetime数据类型的成员属性就是这样的,可以使用Excel格式进行格式化。并且数字成员属性本身遇到,可以在Excel中进行格式化。但是,当您使用显示属性为标题OLAP数据透视表扩展功能使用任何成员属性作为字幕时,该标题作为字符串进行,不幸的是不能在Excel中进行格式化。

One advantage of the built-in "Show Properties In Report" feature is that the member properties come through into Excel with their proper datatypes. So a member property of datetime datatype comes across as such and can be formatted using Excel formatting. And numeric member properties come across as such and can be formatted in Excel. However, when you use any member property as a caption using the "Show Property as Caption" OLAP PivotTable Extensions feature, the caption comes across as a string and cannot be formatted in Excel, unfortunately.

它涉及Excel中的格式化,但我相信Excel中的排序也适用。

It talks about formatting in Excel but I believe sorting in Excel applies too.

所以...使用相同的日期键(月初)添加活动日历月属性的新成员属性,然后将该成员属性添加到数据透视表,尝试排序。如果可以的话,太棒了如果没有,那么安装该OLAP数据透视表扩展插件,并使用显示属性为标题然后进行排序。有意义吗?

So... Add a new member property of your Activity Calendar Month attribute with the same date key (first of the month) then add that member property to the PivotTable and try to sort by it. If you can, great. If not then install that OLAP PivotTable Extensions add-in and use Show Property As Caption then sort. Make sense?

感谢非常好的问题!