<= (Less Than or Equal To) (MDX)
Updated: March 2, 2016
Performs a comparison operation that determines whether the value of one Multidimensional Expressions (MDX) expression is less than or equal to the value of another MDX expression.
MDX_Expression <= MDX_Expression
A valid MDX expression.
A Boolean value based on the following conditions:
true if both parameters are non-null, and the first parameter has a value that is either less than or equal to the value of the second parameter.
false if both parameters are non-null, and the first parameter has a value that greater than the value of the second parameter.
null if either or both parameters evaluate to a null value.
The following example demonstrates the use of this operator.
-- This query returns the gross profit margin (GPM) -- for Australia where the GPM is less than or equal to 30%. With Member [Measures].[LowGPM] 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].[LowGPM])