2

在下面的 MDX 中,如果参数 @{AnneeSelected} 等于“2015”,我想将我的计算成员命名为“Evolution 2012-2015”

with CALCULATED MEMBER [Periode].[Periode].[Evolution] AS percChange(@{AnneeSelected}, @{AnneeSelected}.lag(2) ) 
SET [Years with data] AS  @{AnneeSelected}.lag(2):@{AnneeSelected} 
select {[Years with data]} + {[Periode].[Periode].[Evolution]} on 0,
{[Measures].[NbSejours], [Measures].[Séjours Théoriques], [Measures].[Séjours Réels], [Measures].[Nombre Lits], [Measures].[Population]}  ON 1
 FROM [Cube]

有没有办法做到这一点 ?

4

1 回答 1

1

您不能更改其名称,但可以定义 CAPTION 属性。

with member xx as 42, CAPTION = "Marc"
select xx on 0 from [Sales]

希望有帮助。

于 2017-03-23T23:46:41.110 回答