如何使用外部表定义维度来定义层次结构

发布于 2024-12-22 04:40:28 字数 215 浏览 6 评论 0原文

我想定义一个层次结构维度,其中层次结构在外部表中定义,如下所示: My Dimension Tables

所有教程似乎都旨在从行中的数据导出层次结构。 LeadSourceID/LeadSourceGroupID/LeadSourceViewID 对此不可用,因为仅填充了一个;它们是 ETL 工件。

I'd like to define a hierarchical dimension where the hierarchy is defined in an external table as such:
My Dimension Tables

All the tutorials seem to be geared towards deriving the hierarchy from data in the row. LeadSourceID/LeadSourceGroupID/LeadSourceViewID are not usable for this as only one is ever populated; they're ETL artifacts.

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

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

发布评论

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

评论(1

冰葑 2024-12-29 04:40:28

首先,您想要的是一个父子层次结构

http://technet.microsoft.com/en-us/library/ms174846.aspx

您所需要做的就是按照上一篇文章的示例进行操作。您获得的子表中有一部分 LeadSource 没有在那里解释,但它就像将 LeadSourceHierarchy 表连接到 LeadSource 表一样简单在维度定义(数据源部分)中。

First of all, what you want there is a Parent-child Hierarchy :

http://technet.microsoft.com/en-us/library/ms174846.aspx

All you need to do is follow the previous article example. There is the part of the subtable you got LeadSource which is not explained there, but it's as easy as joining the LeadSourceHierarchy table to the LeadSource table in your dimension definition (datasource section).

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