我如何设计一个数据仓库来使用 SSAS 将数据存储在多维数据集中?
我在数据库中有这样的结构
| 角色ID | 角色类型 ID | 人员 ID | 组织ID | 起始日期 | 迄今为止 |
每个角色仅在 FromDate 和 ToDate 之间的日期有效。
每个人都有姓名、性别和出生日期。
我想将此日期放入数据仓库中以与 SSAS 一起使用。
我希望能够构建包含每个组织、每个角色类型、每个性别、每个年龄、每个时间的角色数量的多维数据集。
我将如何设计一个 DW 来存储它,仅仅因为年龄和性别数据组合,我可能会得到大约 200 行,但除此之外我还有角色类型和组织。
例如像
|2009-01-01|RoleTypeID=Employee|Organization=HQ|Gender=Male|Age=32|Count=17| 这样的行 |2009-01-01|RoleTypeID=员工|组织=总部|性别=女|年龄=32|人数=12| |2009-01-01|RoleTypeID=员工|组织=总部|性别=男|年龄=33|人数=18|
直觉告诉我,我走错了路……
I have a structure like this in a DB
| RoleID | RoleTypeID | PersonID | OrganizationID | FromDate | ToDate |
Each role is only valid for dates between FromDate and ToDate.
Each person has a name, gender and birth date.
I want to put this date into a data warehouse to use with SSAS.
There I want to be able to build cubes with the number of roles per organization, per role type, per gender, per age per time.
How would I design a DW to store this, I could potentially get ~200 rows just because of the age and gender data combinations, but then I have role types and organizations on top of that.
E.g. rows like
|2009-01-01|RoleTypeID=Employee|Organization=HQ|Gender=Male|Age=32|Count=17|
|2009-01-01|RoleTypeID=Employee|Organization=HQ|Gender=Female|Age=32|Count=12|
|2009-01-01|RoleTypeID=Employee|Organization=HQ|Gender=Male|Age=33|Count=18|
Gut feeling tells me I am on the wrong track here…
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有充分掌握和理解所涉及的基础知识,数据仓库项目并不是真正可以投入的项目。 设计过程与“关系模型”不同,需要您以不同的方式思考数据。
我对您的建议是获取以下文本的副本。 这是一个极好的资源,将引导您完成整个项目所需的步骤。
http://www.amazon.com/Microsoft-Data-Warehouse-Toolkit-Microsoft-商业情报/dp/0471267155
A Datawarehouse project is not really something you can jump into without having a good solid grasp and understanding of the fundamentals involved. The design process is not the same as the 'relational model' and requires that you think differently about data.
My advice to you is to get hold of a copy of the following text. It is an excellent resource that will walk you through the steps required for your entire project.
http://www.amazon.com/Microsoft-Data-Warehouse-Toolkit-Microsoft-Business-Intelligence/dp/0471267155