SSAS - Data Cube Hierarchy not visible in Excel

♀尐吖头ヾ 提交于 2019-12-07 20:30:29

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/6365100/ssas-data-cube-hierarchy-not-visible-in-excel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!