ケースにcurrentMemberの比較を入れる必要がありますか?
私はこれがうまくいくと思いますか?
case
when [measure].[frequency] >3 then 'red'
when [measure].[frequency] <3 then 'yellow'
when [measure].[frequency] =3 then 'Green'
else 'NA'
end
「NA」を使用する必要がありますか?null
この状況で使えませんか?
case
when [measure].[frequency] >3 then 'red'
when [measure].[frequency] <3 then 'yellow'
when [measure].[frequency] =3 then 'Green'
else NULL
end
calc の他のセクションは、次のような演算子[poa].[segment].&A
を使用して何かと比較する必要があるようです。IS
([poa].CURRENTMEMBER IS [poa].[segment].&A)
case
したがって、これをステートメントに追加します。
CASE
WHEN [measure].[frequency] >3
AND ([poa].CURRENTMEMBER IS [poa].[segment].&A) THEN 'red'
WHEN [measure].[frequency] <3
AND ([poa].CURRENTMEMBER IS [poa].[segment].&A) THEN 'yellow'
WHEN [measure].[frequency] =3
AND ([poa].CURRENTMEMBER IS [poa].[segment].&A) THEN 'Green'
ELSE NULL
END