州と州を含むディメンション [Ship To State] から Unknown を除外しようとしています。
最初の式は、都道府県だけでなく都道府県も除外していますが、その理由はわかりません -
この mdx には、州のみがリストされています (Unknown と、何らかの理由で Provinces は除外されます)。
WITH
MEMBER measures.ParameterCaption as [Ship To].[Ship To State].currentmember.member_caption
MEMBER measures.ParameterValue as [Ship To].[Ship To State].currentmember.uniquename
SELECT {measures.ParameterCaption, measures.ParameterValue} ON COLUMNS,
FILTER([Ship To].[Ship To State].children,
[Ship To].[Ship To State].currentmember<>[Ship To].[Ship To State].&[Unknown]
) ON ROWS
FROM [Invoiced Orders]
この mdx は、州と州を正しくリストし、Unknown を除外します。
WITH
MEMBER measures.ParameterCaption as [Ship To].[Ship To State].currentmember.member_caption
MEMBER measures.ParameterValue as [Ship To].[Ship To State].currentmember.uniquename
SELECT {measures.ParameterCaption, measures.ParameterValue} ON COLUMNS,
FILTER([Ship To].[Ship To State].children,
measures.ParameterCaption <> "Unknown"
) ON ROWS
FROM [Invoiced Orders]