SSAS - 数据立方体层次结构在 Excel 中不可见
初始请求:根据客户名称和产品描述创建层次结构。
问题:我创建了多个类似的层次结构,但产品描述层次结构在 Excel 中不可见
支持详细信息 每个层次结构的计算列如下所示:
列名称:产品描述前缀 1 表达式:
CASE
WHEN [ProductDescription] = 'N/A' THEN 'N/A'
ELSE LEFT([ProductDescription], 1)
END
列名称: 产品描述 Prefix5 表达式:
CASE
WHEN [ProductDescription] = 'N/A' THEN 'N/A'
ELSE LEFT([ProductDescription], 5)
END
列名称: 产品描述 Prefix10 表达式:
CASE
WHEN [ProductDescription] = 'N/A' THEN 'N/A'
ELSE LEFT([ProductDescription], 10)
END
在我的产品维度中,我创建了一个分级的产品描述层次结构
- 产品描述 Prefix1
- 产品描述 Prefix5
- 产品描述 Prefix10
- 产品描述
其中 1 是与 5、5 与 10、10 与产品描述的属性关系,产品描述与关键词:产品。
这些属性中的每一个都设置了其 KeyColumn 集合: 产品描述 Prefix1 的 KeyColumns:做它自己 产品描述 Prefix5 的 KeyColumns:1 和 5 产品描述 Prefix10 的 KeyColumns: 1,5,10 产品描述的 KeyColumns:1、5、10 和产品描述
现在,我选择 AttributeHierarchyVisible = False,因为我不希望用户能够选择单个属性。
任何有关我所缺少的导致层次结构变得可见的帮助将不胜感激
Initial Request: Create hierarchies over customer names and product descriptions.
Problem: I created several similar hierarchies and the product description hierarchy is not visible in Excel
Supporting details
The computed columns for each hierarchy look like this:
Column Name: Product Description Prefix1
Expression:
CASE
WHEN [ProductDescription] = 'N/A' THEN 'N/A'
ELSE LEFT([ProductDescription], 1)
END
Column Name: Product Description Prefix5
Expression:
CASE
WHEN [ProductDescription] = 'N/A' THEN 'N/A'
ELSE LEFT([ProductDescription], 5)
END
Column Name: Product Description Prefix10
Expression:
CASE
WHEN [ProductDescription] = 'N/A' THEN 'N/A'
ELSE LEFT([ProductDescription], 10)
END
In my product dimension, I created a Product Description Hierarchy that is leveled
- Product Description Prefix1
- Product Description Prefix5
- Product Description Prefix10
- Product Description
With 1 being an attribute relationship to 5, 5 to 10, 10 to Product Description, and Product Description to the Key: Product.
Each one of these attributes have their KeyColumn collections are set:
Product Description Prefix1's KeyColumns: Being its self
Product Description Prefix5's KeyColumns: 1 and 5
Product Description Prefix10's KeyColumns: 1,5,10
Product Description's KeyColumns: 1,5,10, and Product Description
Right now, I'm choosing AttributeHierarchyVisible = False because I don't want the user to to be able to select the individual attribute.
Any help as to what I am missing causing the hierarchy to become visible would be much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题的解决方案在于计算列的命名。
计算列的名称中有空格。
有了空格,数据就正确部署在它应该有的地方;但是,Excel 2010 不会承认层次结构的存在 - 即使数据通过 Management Studio 可见。奇怪的。
删除空间并部署立方体后,层次结构将可见。
The solution to this issue lies in the naming of the computed columns.
You have spaces in the names of the computed columns.
With the spaces, the data correctly deployed where it should have; however, Excel 2010 would not acknowledge the existence of a hierarchy -- even though the data was visible through management studio. Strange.
Once the spaces are removed and the cube deployed, the hierarchy will be visible.