執行比較操作,判斷一個多維表達式(MDX)表達式的值是否小於另一個 MDX 表達式的值。
Syntax
MDX_Expression < MDX_Expression
參數
MDX_Expression
一個有效的 MDX 表達式。
傳回值
基於以下條件的布林值:
若兩個參數皆非空,且第一個參數的值低於第二個參數,則為真。
若兩個參數皆非空,且第一個參數的值等於或大於第二個參數,則為假。
若其中一個或兩個參數都被評估為空值,則為 null。
Examples
以下範例展示了此運算子的使用。
-- 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])