在SSAS数据源视图中,DysDate和FactInternetSales与AdventureWorks数据库中的表之间没有任何关系

时间:2012-06-05 05:54:28

标签: sql-server-2008-r2

我是SSIS的SQL Server开发人员家庭成员。但这是我第一次参与SSAS。我试图从微软提供的免费视频教程中学习它。在教程中当他们尝试使用AdventureWorks数据库中的表创建数据源视图时,模式在DimDate和FactInternetSales之间具有关系(具有3个连接列/行),而其他表具有一个连接列/行。

But when i tried to do the same, the schema shows no relationship between DimDate and FactInternetSales. Note: Other tables had one connectivity ..same as the video tutorial.

请建议。

谢谢, 瓦努

1 个答案:

答案 0 :(得分:0)

事实日期键与DimDate维度之间必须存在一对一的关系。因此,在您的示例中,架构视图中有三个连接指针,这意味着Fact表必须包含三个不同的日期键。
这可能类似于Start_Date_Key,End_Date_Key,As_of_Date_Key,它们都可以指向DimDate。 Date_Key键字段。考虑到这一点,您的行将类似于以下

Start_Date_Key = 20120101
As_of_Date_Key = 20120605
End_Date_Key = 20150101
SomeotherKey = 10
Sales_Product_Key = 5

希望这有帮助。