OLAP维度结构

发布于 2024-12-21 05:42:01 字数 128 浏览 4 评论 0原文

我有维度“客户”。每个客户可以有一些业务单位和一些部门。 我应该建立 2 个层次结构:客户 -> 部门和客户 -> 业务单位。 所以,我还需要设置关键属性。这是我的问题:应该使用什么作为关键属性? 我可能做错了吗? 你能帮忙吗?

I have Dimension "Customer". Each Customer can have some buisness units and some departmens.
I should bild 2 hierarchies: Customer->Department and Customer->Buisness Unit.
So, I also need to set key attribute. This is my question: What should be use as key attribute?
May be I do this wrong?
Could you help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧笙踏歌 2024-12-28 05:42:02

要定义层次结构,您应该问以下问题:

如果我对部门进行分组,我有一个消费者吗?如果我将业务分组,我就有消费者了吗?
如果我把部门和业务分组,我就有消费者了?

如果对部门进行分组得到一个消费者,那么层次结构是:消费者>消费者。部门。另一个也同样如此。
如果将部门和业务(维度中包含两条信息的属性,例如DPT1-BUS1)分组得到消费者,则层次结构为:消费者>消费者。部门_业务。

不建议维度中包含空属性。所以要确保消费者需要有一个企业和一个部门。否则,重新表述数据仓库的建模。一般来说,关键维度是人工关键自动递增...

我建议阅读 Kimball希望

这有帮助。

To define hierarchies, you should ask the following questions:

If I group the departments, I have a consumer? If I group the business, I have a consumer?
If I group the departments and business, I have a consumer?

If grouping the departments get a consumer, so the hierarchy is: Consumer > Department. Similarly with the other.
If grouping the department and business (an attribute in dimension that contains two pieces of information, for example, DPT1-BUS1) obtains a consumer, the hierarchy is: Consumer > Department_Business.

It is not recommended to have null attributes in a dimension. So make sure that the consumer needs to have a business and a department. Otherwise, rephrase the modeling of the data warehouse. Generally, a key dimension is a artificial key auto-increment...

I recommend that read Kimball

Hope this help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文