上午,
我有以下MDX,并希望在度量'估计未开帐单的优秀小计'上设置过滤器。我已经在论坛中搜索并了解我应该能够使用FILTER或WHERE,但我不能让这些示例适合我。真的很感激任何帮助。
SELECT
{ [Measures].[Estimated Unbilled Outstanding Subtotal £] } ON COLUMNS
,{ NONEMPTY(
{ [Customer].[Billing Team].[All].CHILDREN }
* { [Customer].[Customer Name].[All].CHILDREN }
* { [Account].[Account ID].[All].CHILDREN }
* { [Account].[Account Type].&[Import]
, [Account].[Account Type].&[Other Non Billable] }
, { [Measures].[Estimated Unbilled Outstanding Subtotal £] }
) } ON ROWS
FROM [BDW];
非常感谢
阿德里安
答案 0 :(得分:0)
您需要在ROWS子句周围放置一个过滤器:
SELECT
{ [Measures].[Estimated Unbilled Outstanding Subtotal £] } ON COLUMNS
,
FILTER(
NONEMPTY(
{ [Customer].[Billing Team].[All].CHILDREN }
* { [Customer].[Customer Name].[All].CHILDREN }
* { [Account].[Account ID].[All].CHILDREN }
* { [Account].[Account Type].&[Import]
, [Account].[Account Type].&[Other Non Billable] }
, { [Measures].[Estimated Unbilled Outstanding Subtotal £] }
)
,[Measures].[Estimated Unbilled Outstanding Subtotal £] >1000
)
ON ROWS
FROM [BDW];