このギャップが何を意味するのか理解できません - と呼ばれるメンバーが本当にいます[ ]
か?! ...[Product Type].[All Product Type].[ ]
また、正確にサポートするために、スクリプト全体 (このスニペットのコンテキスト) も確認する必要があります。
currentmember
階層の nullをテストする場合[Product Type].[All Product Type]
は、次のようにします。
IIF(
[Product Type].[All Product Type].currentmember.membervalue = 0,
"MISSING",
[Product Type].[All Product Type].currentmember.membervalue
)
私が上記で遊んでいるキューブでは、すべてのメンバーが存在するため、すべてのメンバーがmembervalue
. 空白を置き換える例を次に示します。
WITH
MEMBER [Measures].[Internet Sales Amount 2] AS
IIF
(
[Measures].[Internet Sales Amount] = 0
,'MISSING'
,[Measures].[Internet Sales Amount]
)
SELECT
{
[Measures].[Internet Sales Amount]
,[Measures].[Internet Sales Amount 2]
} ON 0
,
[Customer].[Customer Geography].[Country].MEMBERS
*
[Product].[Category].MEMBERS ON 1
FROM [Adventure Works];
作成した新しいメジャーの結果は、以下の 4 列に表示されます。
