sql server 2005 analysis service step by step(三):创建父子维度

1.什么是父子维度。

the parent-child relationship in the table that the wizard detected by the self-referencing join
on the table.例如在Dim.Employee表中有个外键是ParentEmployeeKey,她关联的主键就是.Employee表的EmployKey建。

2. 创建父子维度

1. Open SSAS Step by Step DW.dsv.
2. Right-click the background of the Data Source View Diagram pane, and then click Add/
Remove Tables.
3. In the Add/Remove Tables dialog box, double-click dbo.DimEmployee in the Available
Objects list to move this table to the Included Objects list, and then click OK.
Notice the self-referencing relationship for the DimEmployee table in the DSV. This relationship
is indicated by the arrow leading from the DimEmployee table back to itself.
4. In Solution Explorer, right-click the Dimensions folder, click New Dimension, click
Next, clear the Auto Build check box, click Next, click the SSAS Step by Step DW DSV,
and then click Next twice.
5. Click dbo.DimEmployee in the Main Table drop-down list, click EmployeeKey in the
Key Columns list, click LastName in the Column Containing The Member Name dropdown
list, and then click Next.
6. On the Select Dimension Attributes page of the wizard, select the check box next to
ParentEmployeeKey.
You must include the attribute that defines the foreign key column of a record in a parentchild
dimension.
7. Click Next twice.

Click Next, change the name of the dimension from Dim Employee to Employee, and
then click Finish.
The Employee parent-child dimension is now added to your project.
9. In the Attributes pane of the Dimension Structure tab, right-click Dim Employee, click
Rename, and then type Employee.
10. Repeat the previous step to rename Parent Employee Key as Employees.
11. Keeping Employees selected in the Attributes pane, open the Properties window and
locate the Usage property.

3.父子维度的数据聚合。

4.管理父子维度的级别。

转载于:https://www.cnblogs.com/baixingfa/archive/2009/04/27/1444878.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值