我有一个具有以下层次结构的 SQL 数据立方体
我想交叉加入仓库部门和代码仓库Desc。我写了一个MDX如下
SELECT NON EMPTY
{ [Measures].[Total Value]}
DIMENSION PROPERTIES CHILDREN_CARDINALITY,
PARENT_UNIQUE_NAME ON COLUMNS,
NON EMPTY
{
[Combined].[Drill Down Path 4].[Warehouse Division].MEMBERS* [Combined].[Drill Down Path 4].[Code Warehouse Desc].MEMBERS
}
DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [InventoryAge]
WHERE ( [Calendar].[Report Days].[All Members].&[All].&[WantInReport].& [2].&[20141031] )
它给了我一个错误如下
Query (13, 8) The Drill Down Path 4 hierarchy is used more than once in the Crossjoin function.
任何机构都可以提出更好的方法来做到这一点
请查找日历层次结构