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