使用 MS SQL Server Analysis Services 在分层数据上创建多维数据集

发布于 2024-08-26 22:13:16 字数 273 浏览 2 评论 0原文

我有一个层次结构,例如 ProductDimension 层次结构。目前,我使用嵌套集方法查询此表。我编写通常的星型模式连接来获取产品组(批次、原产地国家、产品线等)的时间序列报告。

我目前正在研究使用 SSAS 多维数据集 - 但多维数据集可以对此进行建模吗?

是否有任何资源可以帮助创建基于层次结构的多维数据集?

I have a hierarchy, like an ProductDimension hierarchy. Currently, I query this table using the Nested Sets methodology. I write the usual star-schema joins to get a time-series report of groups of Products (Batches, CountryOfOrigin, ProductLine, etc.).

I'm currently investigating using SSAS cubes- but can a cube model this?

Are there any resources that would help with the creation of a cube based on hierarchies?

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

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

发布评论

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

评论(1

誰認得朕 2024-09-02 22:13:16

听起来像是在维度中很好地利用了亲子关系?

就像标准的员工维度一样,每个员工在层次结构中都位于其老板的“下方”。一个简单的例子在这里:http://technet.microsoft.com/en-我们/library/ms174846.aspx

在此维度表中,
ParentOrganizationKey 列有一个
与的外键关系
OrganizationKey 主键列。在
换句话说,该表中的每条记录
可以通过亲子关系
与另一个记录的关系
桌子。这种自加入是
一般用来表示
组织实体数据,例如
员工的管理结构
部门。

Sounds like a good use for a parent-child relationship in a dimension?

Like the standard Employee dimension, where each employee is 'beneath' their boss in the hierarchy. A quick example is here: http://technet.microsoft.com/en-us/library/ms174846.aspx

In this dimension table, the
ParentOrganizationKey column has a
foreign key relationship with the
OrganizationKey primary key column. In
other words, each record in this table
can be related through a parent-child
relationship with another record in
the table. This kind of self-join is
generally used to represent
organization entity data, such as the
management structure of employees in a
department.

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