简体   繁体   English

Pentaho Schema Workbench尺寸属性

[英]Pentaho Schema Workbench dimension attributes

I use PSW 3.5.11. 我使用PSW 3.5.11。 I have a classic dimension for people (sex, ethnicity, religion, study level, etc.) and people code. 对于人(性别,种族,宗教,学习水平等)和人的代码,我有一个经典的维度。

How can I create this dimension to use each attribute alone and not as a level? 如何创建此维度以单独使用每个属性而不是将其用作级别?

I know how create a dimension with hierarchy, like 我知道如何创建具有层次结构的维度,例如

geography: Country -> Province - > Region -> City

but Geography dimension not has same structure of People dimension. 但是地理维度没有人维度的相同结构。 How analyze my data by sex in a report, by ethnicity in another report? 如何在报告中按性别,在另一报告中按种族分析我的数据? How can I create the People dimension? 如何创建人员维度?

Thanks for the help. 谢谢您的帮助。

You can reference the same table multiple times. 您可以多次引用同一张表。 Define one dimension gender, pointing to the table and a single level gender given by column gender; 定义一维性别,指向表格,并按列性别指定一个级别的性别; set another dimension ethnicity, pointing to the same table and a single level ethnicity given by column ethnicity. 设置另一个维度种族,指向同一列和列种族给定的单个级别种族。 Etc. 等等。

If you prefer, you can instead set multiple hierarchies, one for each attribute, all within a single dimension People, but in practice there isn't much difference (the MDX changes just a bit). 如果愿意,您可以设置多个层次结构,每个属性一个层次结构,所有层次结构都在一个维度People中,但是实际上并没有太大的区别(MDX只是稍微改变了一点)。

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

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