检查空列 MDX

Check null columns MDX

我有 MDX 查询:

SELECT NON EMPTY { [Measures].[Revenue] } ON COLUMNS, NON EMPTY {( [DimDates].[YearMonthNum].[YearMonthNum].ALLMEMBERS )} 
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( { [TransactionsData].[FirstYearMonth].&[2020-01] } ) 
ON COLUMNS FROM ( SELECT ( { [TransactionsDataExtra].[Cluster].[All] } ) 
ON COLUMNS FROM ( SELECT ( { [TransactionsDataExtra].[Campaign].[All] } ) 
ON COLUMNS FROM ( SELECT ( { [TransactionsData].[RevenueGenerating].[All] } ) 
ON COLUMNS FROM ( SELECT ( { [TransactionsData].[Product].[All] } ) 
ON COLUMNS FROM ( SELECT ( { [TransactionsDataExtra].[Channel].[All] } ) 
ON COLUMNS FROM (SELECT ( { [TransactionsDataExtra].[Custom4].[All] } ) 
ON COLUMNS FROM (SELECT ( { [TransactionsDataExtra].[Custom5].[All] } ) 
ON COLUMNS FROM (SELECT ( { [TransactionsDataExtra].[Custom6].[All] } ) 
ON COLUMNS FROM (SELECT ( { [TransactionsData].[ClientId].&[2] } ) 
ON COLUMNS FROM [Model])))))))))) 
WHERE ( [TransactionsDataExtra].[Channel].[All],
 [TransactionsData].[Product].[All],
 [TransactionsData].[RevenueGenerating].[All], [TransactionsDataExtra].[Campaign].[All], 
[TransactionsData].[FirstYearMonth] <= ['2020-01'], 
[TransactionsDataExtra].[Cluster].[All], [TransactionsData].[ClientId].&[2] ) 
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, 
FONT_NAME, FONT_SIZE, FONT_FLAGS

我想获得结果,例如Custom6 为 NULL,或 Custom5 为 NULL,或两者皆为 NULL,或任何其他过滤器,或 Custom5[NULL, Value]

但我一直在努力寻找如何做到这一点以及在查询中添加更改的位置...我尝试不传递任何类似的东西:[TransactionsDataExtra].[Cluster].&[] 但那没有 return 任何东西全部。谁能帮帮我?

我也查找了 ISEMPTY 但不知道如何添加它..

对于任何像菜鸟一样在未来挣扎的人,请使用这个: [DataExtra].[Cluster].& 而不是 [DataExtra].[Cluster].&[]

此外,检查这个惊人的 Excel 扩展以查看查询:https://olappivottableextensions.github.io/#view-pivottable-mdx