IS (MDX)
Performs a logical comparison on two object expressions.
Składnia
Expression1 IS ( Expression2 | NULL )
Parametry
Expression1
A valid Multidimensional Expressions (MDX) expression that returns an MDX object reference.Expression2
A valid MDX expression that returns an MDX object reference.
Wartość zwracana
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.
Uwagi
The IS operator is often used to determine whether tuples and members are idempotent, meaning that they are exactly equivalent.
Examples
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]