檢查值是否為十進位數,並傳回 TRUE 或 FALSE。
語法
ISCURRENCY(<value>)
參數
| 術語 | Definition |
|---|---|
value |
您要測試的值。 |
返回值
TRUE 如果值是十進位數;否則 FALSE。
備註
- 在計算資料行或資料列層級安全性 (RLS) 規則中使用時,不支援在 DirectQuery 模式中使用此函式。
- 此函式是 ISDECIAL 的別名。
Example
下列 DAX 查詢顯示 ISCURRENCY 的行為。
EVALUATE
{
IF ( ISCURRENCY ( 3.1E-1 ), "Is currency", "Is not currency" ), // RETURNS: Is not currency
IF ( ISCURRENCY ( "42" ), "Is currency", "Is not currency" ), // RETURNS: Is not currency
IF ( ISCURRENCY ( 42 ), "Is currency", "Is not currency" ), // RETURNS: Is not currency
IF ( ISCURRENCY ( CURRENCY ( 4.2421 ) ), "Is currency", "Is not currency" ) // RETURNS: Is currency
}