当我使用函数创建计算成员时,AGGREGATE
为什么 Axis 0(MEASURE
选择的位置)中的值保持不变,无论使用哪个MEASURE
。
计算成员的定义
WITH MEMBER [Date].Year.x2010 AS
AGGREGATE(
[Date].Year.&[2010] * {[Client].[Client Number].&[000058]}
, [Measures].[Claim As Of - Count]
)
SELECT
{[Measures].[Claim As Of - Count], [Measures].[Incurred Amount % of Total As Of - Avg]} ON 0,
{[Date].[Year].[x2010],[Date].[Year].[2010]} ON 1
FROM [AW Cube]
输出
对于普通成员,输出会随着不同的度量而变化,但对于计算成员,它不会。