我是 MDX 的新手。现在我想结合来自 2 个不同维度的两个结果。我正在使用以下代码:
With
MEMBER [Measures].[Student Head Count].[Program1] AS
([Program1].[Program1].&[1])
MEMBER [Measures].[Student Head Count].[Program2] AS
([Program2].[Program2].&[1])
SELECT
NON EMPTY
{
[Measures].[Student Head Count].[Program1] ,
[Measures].[Student Head Count].[Program2]
}
ON COLUMNS
FROM [Current Student Overview]
错误显示:
The Program1 calculated member cannot be created because its parent is at the lowest level in the Measures hierarchy.
我知道“Student Head Count”处于最低级别,但我不知道如何修改语法。如果我将“Student Head Count”替换为“Test”,它也不起作用。此外,我尝试过的“联合”不起作用。任何人都可以帮助我修改或新的 MDX 吗?
我尝试使用以下脚本使用 Crossjoin:
SELECT
NON EMPTY
{
[Measures].[Student Head Count]
}
ON COLUMNS,
NON EMPTY
{
NONEMPTYCROSSJOIN({[Program1].[Program1].&[1]},{[Program2].[Program2] }),
NONEMPTYCROSSJOIN({[Program1].[Program1] },{[Program2].[Program2].&[1]})
}
on 1
FROM [Current Student Overview]
结果是:
那么如何消除或隐藏性能点中的“全部”列?