![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Here is one approach, assuming there is a [Sales] measure, a[Clients] parent-child dimension with an [All] level and an [Employees] dimension with an [Employee] level. First add a "EmployeeKey" Member Property to Clients, based on the "responsible_employee_key" column of the dimension table. Then define 2 calculated measures as follows: [Measures].[AllEmpSales] as ([Measures].[Sales],[Employees].[All Employees]) [Measures].[PerEmpSales] as iif([Employees].CurrentMember.Level is [Employees].[Employee], Sum(Filter([Clients].CurrentMember.Children, [Clients].CurrentMember.Properties("EmployeeKey") = [Employees].CurrentMember.Properties("KEY")), [Measures].[AllEmpSales]) + Sum(Filter([Clients].CurrentMember.Children, [Clients].CurrentMember.Properties("EmployeeKey") [Employees].CurrentMember.Properties("KEY")), [Measures].[PerEmpSales]), [Measures].[Sales]) The [Measures].[PerEmpSales] should roll up the sales. - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |