2014-09-12 56 views
1

您能否请求帮助解决以下问题。我尝试了一切,但无法从我的多维数据集中获得所需的值。基本上我有以下事实/尺寸:SSAS 2012:通过常见维度表筛选事实数据表的值

dimEmpolyeeGroup - employees grouped together by the HR department (M:N to department) 
dimEmployee - the employee itself 
dimDepartment - department structure (M:N to EmployeeGroup) 
factAttendanceTime - time the staff was present and got payed for 
factTimeTicket - time that was booked on a specific department 

dimEmployeeGroup -> factAttendanceTime <- dimEmployee -> factTimeTicket <-dimDepartment 

我的问题是汇集这两个facttable。我怎样才能做到这一点?我尝试了EmployeeGroup和Department之间的多对多关系的不同组合,但没有为我工作。我要么没有看到factTimeTicket,factAttendanceTime的价值,要么我得到Departments和EmployeeGroups的笛卡尔积。

其目标是结合这两个事实表。用户应该能够(Excel Pivot)通过EmployeeGroup进行过滤,以获得这些组的出勤和TimeTicket时间(或其他方式,或者按两者过滤,...)

我该怎么做错误?为什么它不是由dimEmployee自动链接的?

回答

0

如果您想通过来自dimEmployeeGroup的属性/层次结构过滤来自表factTimeTicket的度量值,那么您应该引用它们。我认为这是通过表factAttendanceTime得出的度量组的多对多关系。

而基于factAttendanceTime的从部门维度到度量值组的关系将使用度量值组factTimeTicket作为多对多表格进行多对多。