title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | ms.custom |
---|---|---|---|---|---|---|---|---|---|
IS (MDX) |
IS (MDX) |
kfollis |
kfollis |
kfollis |
02/17/2022 |
sql |
analysis-services |
reference |
mdx |
Performs a logical comparison on two object expressions.
Expression1 IS ( Expression2 | NULL )
Expression1
A valid Multidimensional Expressions (MDX) expression that returns an MDX object reference.
Expression2
A valid MDX expression that returns an MDX object reference.
A Boolean value that returns true if both arguments refer to the same object; otherwise, false. If the NULL keyword is specified, the operator returns true if Expression1 is null; otherwise, false.
The IS operator is often used to determine whether tuples and members are idempotent, meaning that they are exactly equivalent.
The following example shows how to use the IS operator to check if the current member on an axis is a specific member:
With
//Returns TRUE if the currentmember is Bikes
Member [Measures].[IsBikes?] AS
[Product].[Category].CurrentMember IS [Product].[Category].&[1]
SELECT
{[Measures].[IsBikes?]} ON 0,
[Product].[Category].[Category].Members ON 1
FROM
[Adventure Works]