计算的度量,它将两个值组合在一起形成一个小数值[Analysis Services]

时间:2011-01-06 09:09:18

标签: olap mdx ssas

在我的立方体中,我有两个度量:A存储 aaaaa 形式的值,B存储 bbbbb 等值。我想定义将给出值 aaaaa.bbbbb 的度量C.我怎样才能做到这一点?

1 个答案:

答案 0 :(得分:1)

如果我理解你的问题,你可以这样做:

with member [Measures].[A] as 123
member [Measures].[B] as 456
member [Measures].[C] as val(cstr([Measures].[A]) + "." + cstr([Measures].[B]))

select {[Measures].[A], [Measures].[B], [Measures].[C]} on 0
from [YourCube]