检查值是否为整数,并返回 TRUE 或 FALSE。
Syntax
ISINTEGER(<value>)
参数
| 术语 | Definition |
|---|---|
value |
要测试的值。 |
返回值
TRUE 如果值为整数,则为否则 FALSE。
注解
- 在计算列或行级别安全性 (RLS) 规则中使用时,不支持在 DirectQuery 模式下使用此函数。
- 此函数是 ISINT64的别名。
Example
以下 DAX 查询显示了 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
}