Desired result
When a cube is deployed and browsed, I wish to see only an immediate manager of an employee.
The cube result shows all managers of a paticular employee, like below:
Abbas, Sanchez, 825
Abbas, Welcker, 825
Abbas, Abbas, 825`
I want to see only the immediate manager of a paticular employee, meaning this:
Abbas, Welcker, 825
How to replicate the scenario:
- Using SQL Server Data Tools
- Create a Analysis Services Multidimensional Data Mining Project
- Data Source is AdventureWorksDW12 database, the sample database from Microsoft.
- Data Source View have two tables: FactResellerSales and DimEmployee
- Create a cube. FactResellerSales = measures. DimEmployee = dimensions.
DimEmployee dimention has the following attributes: EmployeeKey, LastName, ParentEmployeeKey.
- EmployeeKey attribute is modified to take Name Column: DimEmployee.LastName
- ParentEmployeeKey attribute is in parent-child relationship. The attribute has created a hierarchy of multi-level.SCREENSHOT 1
Deploy cube and browse. Drag the following attributes: LastName, ParentEmployeeKey, Order Quantity. SCREENSHOT 2