IS (MDX)
Performs a logical comparison on two object expressions.
Syntax
Expression1 IS ( Expression2 | NULL )
Parameters
Expression1
A valid Multidimensional Expressions (MDX) expression that returns an MDX object reference.
Expression2
A valid MDX expression that returns an MDX object reference.
Return Value
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.
Remarks
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]
See Also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για