简体   繁体   English

如何在SSAS中创建层次结构

[英]How to create hierarchy in SSAS

I want to create hierarchy based on dimention build on one tabele. 我想基于在一个Tabele上构建的尺寸创建层次结构。 The hierachy is embedded in flat table in this way: 该层次结构通过以下方式嵌入到平板中:

id      description    next_id  is_basic

00000   ManagementBoard null    yes

10000   SalesDivision   00000   yes

20000   HRDivision      00000   yes

30000   TaxDivision     00000   yes

10001   SalesTeam1      10000   no

10002   SalesTeam2      10000   no

20001   HrTeam1         20000   no

20002   HrTeam2         20000   no

30001   TaxTeam1        30000   no

30002   TaxTeam2        30000   no

When I want to create hierarchy in SSAS by giving atribute: id and description it gives me en error "Attribute relationships dont exist between one or more levels of this hierarchy". 当我想通过提供属性:id和description在SSAS中创建层次结构时,它给我一个错误“该层次结构的一个或多个级别之间不存在属性关系”。 Do you have any idea how to build this hierarchy based on table like the one in example. 您是否知道如何像示例中的表一样基于表构建此层次结构。 I'd like to mention that is not 3-levels tree. 我想提到的不是3层树。 There is about 5 levels. 大约有5个级别。 Thanks! 谢谢!

通过这种类型的源表,您可以在Analysis Services中构建父子层次结构

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM