在SSAS中显示自联接表的父值

时间:2018-11-13 04:14:35

标签: ssas

+------------+------------------+----------+
| 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 |
+------------+------------------+

0 个答案:

没有答案