如何使用外部表定义维度来定义层次结构
我想定义一个层次结构维度,其中层次结构在外部表中定义,如下所示:
所有教程似乎都旨在从行中的数据导出层次结构。 LeadSourceID/LeadSourceGroupID/LeadSourceViewID 对此不可用,因为仅填充了一个;它们是 ETL 工件。
I'd like to define a hierarchical dimension where the hierarchy is defined in an external table as such:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您想要的是一个父子层次结构:
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 theLeadSourceHierarchy
table to theLeadSource
table in your dimension definition (datasource section).