1

我在蒙德里安有一个 MDX 查询,如下所示

with member [Measures].[a] as '([Measures].[LCount] * 2)'
 member [Measures].[b] as '([Measures].[a] * 3)'
select {[Rate].[Rate].Members} ON COLUMNS,
{[Measures].[a], [Measures].[b]} ON ROWS
from [c];

我想为我的计算量度设置与它们的 uniqeName 不同的标题我该怎么办?

注意 :

with member [Measures].[a] as '([Measures].[LCount] * 2)',
CAPTION = "my measure"

不工作!

4

1 回答 1

1

我尝试了类似于

with member [Measures].[a] as '([Measures].[Internet Sales Amount] * 2)', Caption = 'my measure'
     member [Measures].[b] as '([Measures].[a] * 3)'
select {[Customer].[Customer Geography].[Country].members} ON COLUMNS,
       {[Measures].[a], [Measures].[b]} ON ROWS
from [Adventure Works];

它工作没有问题。注意:我在标题文本中使用了单引号

只是与此无关的注释:如果您不需要与 2000 版本中的 Analysis Services 兼容,则可以省略成员定义周围的引号。这有时(但不是在这种情况下)会为您提供更好的语法错误消息。

于 2013-09-16T13:02:22.913 回答