2014-09-12 38 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作爲多對多表格進行多對多。