Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.69 KB

greater-than-or-equal-to-mdx.md

File metadata and controls

61 lines (46 loc) · 1.69 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic ms.custom
>= (Greater Than or Equal To) (MDX)
>= (Greater Than or Equal To) (MDX)
kfollis
kfollis
kfollis
02/17/2022
sql
analysis-services
reference
mdx

>= (Greater Than or Equal To) (MDX)

Performs a comparison operation that determines whether the value of one Multidimensional Expressions (MDX) expression is greater than or equal to the value of another MDX expression.

Syntax

  
MDX_Expression >= MDX_Expression  

Parameters

MDX_Expression
A valid MDX expression.

Return Value

A Boolean value based on the following conditions:

  • true if the first parameter has a value that is either greater than or equal to the value of the second parameter.

  • false if the first parameter has a value that is lower than the value of the second parameter.

  • true if both parameters are null or if one parameter is null and the other parameter is 0.

Examples

The following example demonstrates the use of this operator.

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

See Also

MDX Operator Reference (MDX)