Condividi tramite


ISBOOLEAN

Si applica a:Colonna calcolataTabella calcolataMisuraCalcolo visivo

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

Sintassi

ISBOOLEAN(<value>)

Parametri

Termine Definition
value Valore da testare.

Valore restituito

TRUE se il valore è un valore logico; FALSE se qualsiasi 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 ISLOGICAL.

Example

La query seguente DAX illustra il comportamento di ISBOOLEAN.

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