1

I have a time table and a sales fact table with multiple dates (order received date, ship date).

I want to define a hierarchy on the order received date and another hierarchy on the ship date.

The cube editor in visual studio allows me to define multiple relationships on these table, but I don't see a way in the hierachy editor to define which relationship to use for the hierarchy.

Am I missing something, or am I supposed to insert the time table into the model twice, which single relationships on each?

Thanks, --sw

4

1 回答 1

2

这不是你使用角色扮演维度的地方吗?因此,您拥有了包含所有层次结构的日期维度,然后您再次将其加入到发货日期的事实表中,现在您有了一个包含所有日期维度层次结构的“日期(发货日期)”维度。

http://www.msbiguide.com/2012/05/role-playing-dimensions-in-ssas/

http://msdn.microsoft.com/en-us/library/ms174487(v=sql.90).aspx

http://kimballgroup.forumotion.net/t1165-role-playing-dimensions

顺便说一句,您只需创建一次 Date 维度,它每次角色扮演时都会在多维数据集中获得一个新别名。

于 2013-02-22T14:26:25.523 回答