0

在过去的两周里,我一直在处理这个问题,并且对 MDX 和我的工作感到厌烦。

我有一个范围脚本来覆盖来自以下行的源表中的图形。1. 矿池费用 (2075) 2. 矿池补偿 (2076)

SCOPE ([Measures].[Income Amount]);  

SCOPE ([Income Caption].[Captions].&[2075],[Measures].[Income Amount]);                   //POOL CHARGE 
this = [Measures].[Charge];
END SCOPE;

SCOPE ([Income Caption].[Captions].&[2076],[Measures].[Income Amount]);                   // POOL COMPENSATION
this = [Measures].[Compensation];
END SCOPE;

示例报告的屏幕截图。

在此处输入图像描述

我想进一步操作这 2 行绿色:我想总结其他 Pool Contribution 条目并将其放在 MD LINE 中。请注意 MDLine 独有。池收费也是如此。

MD LINE 池补偿 = '资产和投资管理' + '企业银行业务' + '一般违约' + '投资银行业务' + '国库和全球市场' 请仅注意池补偿和池费用。

所有努力都返回 null 或 #VALUE。

请帮忙。

非常感谢。

4

1 回答 1

0

关于什么?

Scope ([Income Caption].[Captions].&[2075],[Measures].[Income Amount]);                   
    This = IIF(
        [Something].[Something].CurrentMember is [Something].[Something].[MD LINE]
        ([Something].[Something].[All],[Measures].[Charge]),
        [Measures].[Charge]
    );
End Scope;

用相应的维度和层次结构替换Something 。

于 2017-05-19T21:01:33.377 回答