檢查值是否為整數,並傳回 TRUE 或 FALSE。
語法
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
}