< (小於)(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 clothing sales where the GPM is less than 30%.  
With Member [Measures].[LowGPM] as  
  IIF(  
      [Measures].[Gross Profit Margin] < .3,  
      [Measures].[Gross Profit Margin],  
      null)  
SELECT NON EMPTY  
    [Sales Territory].[Sales Territory Country].Members ON 0,  
    [Product].[Category].[Clothing] ON 1  
FROM  
    [Adventure Works]  
WHERE  
    ([Measures].[LowGPM])  

另請參閱

MDX 運算子參考 (MDX)