Mdx 将标注值更改为度量值

Mdx 将标注值更改为度量值,mdx,mdxstudio,Mdx,Mdxstudio,我想使用尺寸值作为计算度量 case when [time].[month].current member is [time].[month].&[januaray] then 'januaray' when [time].[month].&[feb] then 'feburary' else 'None' end 我想将这12个月的值显示为度量值您应该能够使用属性MemberValue、Member\u Value或MemberCaptio

我想使用尺寸值作为计算度量

case when [time].[month].current member is 
        [time].[month].&[januaray] then 'januaray'

        when [time].[month].&[feb] then 'feburary'
else 'None' end

我想将这12个月的值显示为度量值

您应该能够使用属性
MemberValue
Member\u Value
MemberCaption

因此,只需以下几点:

[time].[month].currentMember.membervalue

您应该不需要在
mdx
中执行此操作:

case when [time].[month].current member is 
        [time].[month].&[januaray] then 'januaray'

        when [time].[month].&[feb] then 'feburary'
else 'None' end
这相当于:
[time].[month].currentMember.member\u标题
。如果
案例
的原因是将
feb
扩展到
feburary
,那么您的语句看起来没有问题-我将使用
NULL
而不是字符串None,并且您需要消除
CurrentMember
的间隙:

CASE 
   WHEN ([time].[month].currentmember IS [time].[month].&[januaray]) THEN 'januaray'
   WHEN ([time].[month].currentmember IS [time].[month].&[feb]) THEN 'feburary'    
        when [time].[month].&[feb] then 'feburary'
ELSE NULL END

你能用我的例子详细解释一下语法吗
case when [time].[month].current member is 
        [time].[month].&[januaray] then 'januaray'

        when [time].[month].&[feb] then 'feburary'
else 'None' end
CASE 
   WHEN ([time].[month].currentmember IS [time].[month].&[januaray]) THEN 'januaray'
   WHEN ([time].[month].currentmember IS [time].[month].&[feb]) THEN 'feburary'    
        when [time].[month].&[feb] then 'feburary'
ELSE NULL END