> (大於)(MDX)

執行比較作業,判斷一個多維度運算式 (MDX) 運算式的值是否大於另一個 MDX 運算式的值。

語法

  
MDX_Expression > MDX_Expression  

參數

MDX_Expression
有效的 MDX 運算式。

傳回值

以下列條件為基礎的布林值:

  • 如果兩個參數都是非 Null,且第一個參數的值大於第二個參數的值,則為 true

  • 如果兩個參數都是非 Null,且第一個參數的值都等於或低於第二個參數的值,則為 false

  • 如果或兩個參數都評估為 null 值,則為 null。

範例

下列範例查詢示範此運算子的使用。

-- This query returns the gross profit margin (GPM)  
-- for Australia where the GPM is more than 50%.  
With Member [Measures].[HighGPM] as  
  IIF(  
      [Measures].[Gross Profit Margin] > .5,  
      [Measures].[Gross Profit Margin],  
      null)  
SELECT   
NON EMPTY [Sales Territory].[Sales Territory Country].[Australia] ON 0,  
    NON EMPTY [Product].[Category].Members ON 1  
FROM  
    [Adventure Works]  
WHERE  
    ([Measures].[HighGPM])  
  

另請參閱

MDX 運算子參考 (MDX)