> (比 Greater Better)(MDX)

執行比較操作,判斷一個多維表達式(MDX)表達式的值是否高於另一個 MDX 表達式的值。

Syntax

  
MDX_Expression > MDX_Expression  

參數

MDX_Expression
一個有效的 MDX 表達式。

傳回值

基於以下條件的布林值:

  • 若兩個參數皆非空,且第一個參數的值大於第二個參數的值,則為真。

  • 若兩個參數皆非空,且第一個參數的值等於或低於第二個參數,則為假。

  • 若其中一個或兩個參數都被評估為空值,則為 null。

Examples

以下範例查詢展示了此運算子的使用。

-- 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])