我在蒙德里安有一个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"
不起作用!
答案 0 :(得分: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兼容,则可以省略成员定义周围的引号。这有时(但不是在这种情况下)会为您提供更好的语法错误消息。