+------------+------------------+----------+
| EmployeeID | ParentEmployeeID | Name |
+------------+------------------+----------+
| 1 | 3 | John Doe |
| 2 | 3 | Jack Doe |
| 3 | 7 | Jane Doe |
+------------+------------------+----------+
我具有上表,并且在SSAS数据视图中,ParentEmployeeID具有与EmployeeID列的自联接。我想为我的维度创建一个层次结构,在上面的数据中我可以显示“经理”>“员工”,我希望我的报表显示以下数据:
+------------+------------------+
| Manager | Employee |
+------------+------------------+
| Jane Doe | John Doe |
| Jane Doe | Jack Doe |
+------------+------------------+