MDX 测量值大于 1000

MDX Measure greater than 1000

早上好,

我有以下 MDX 并想在度量 'Estimated Unbilled Outstanding Subtotal £' 上放置一个过滤器。我在论坛中进行了搜索,了解到我应该能够使用 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];

非常感谢

阿德里安

您需要在 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];