Condividi tramite


ISLOGICAL

Si applica a:colonna calcolatatabella calcolata calcolo visivomisura

Controlla se un valore è un valore logico, (TRUE o FALSE) e restituisce TRUE o FALSE.

Sintassi

ISLOGICAL(<value>)

Parametri

Termine Definizione
value Valore da testare.

Valore restituito

TRUE se il valore è un valore logico; FALSE se un valore diverso da TRUEORFALSE.

Osservazioni

  • Questa funzione non è supportata per l'uso in modalità DirectQuery quando viene usata nelle colonne calcolate o nelle regole di sicurezza a livello di riga.
  • Questa funzione è un alias di ISBOOLEAN.

Esempio

La query seguente DAX illustra il comportamento di ISLOGICAL.

EVALUATE
{
    IF ( ISLOGICAL ( TRUE ), "Is Boolean type or Logical", "Is different type" ), // RETURNS: Is Boolean type or Logical
    IF ( ISLOGICAL ( FALSE ), "Is Boolean type or Logical", "Is different type" ), // RETURNS: Is Boolean type or Logical
    IF ( ISLOGICAL ( 42 ), "Is Boolean type or Logical", "Is different type" ) // RETURNS: Is different type
}