>= (大於或等於) (MDX)

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

語法

  
MDX_Expression >= MDX_Expression  

參數

MDX_Expression
有效的 MDX 運算式。

傳回值

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

  • 如果第一個參數的值大於或等於第二個參數的值,則為 true

  • 如果第一個參數的值低於第二個參數的值,則為 false

  • 如果兩個參數都是 Null,或一個參數為 null,而另一個參數為 0,則為 true

範例

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

-- This query returns the gross profit margin (GPM)  
-- for Australia where the GPM is greater than or equal to 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)