Compartir a través de


ISINTEGER

Se aplica a:Columna calculadaTabla calculadaMedirCálculo visual

Comprueba si un valor es un número entero y devuelve TRUE o FALSE.

Syntax

ISINTEGER(<value>)

Parámetros

Término Definición
value Valor que desea probar.

Valor devuelto

TRUE si el valor es un número entero; de lo contrario FALSE, es .

Observaciones

  • Esta función no se admite para su uso en el modo DirectQuery cuando se usa en columnas calculadas o reglas de seguridad de nivel de fila (RLS).
  • Esta función es un alias de ISINT64.

Example

La consulta siguiente DAX muestra el comportamiento de ISINTEGER.

EVALUATE
{
    IF ( ISINTEGER ( 4.2 ), "Is integer", "Is not integer" ), // RETURNS: Is not integer
    IF ( ISINTEGER ( 3.1E-1 ), "Is integer", "Is not integer" ), // RETURNS: Is not integer
    IF ( ISINTEGER ( "42" ), "Is integer", "Is not integer" ), // RETURNS: Is not integer
    IF ( ISINTEGER ( 42 ), "Is integer", "Is not integer" ) // RETURNS: Is integer
}