ISEMPTY
Applies to:
Calculated column
Calculated table
Measure
Visual calculation
Checks if a table is empty.
Syntax
ISEMPTY(<table_expression>)
Parameters
Term | Definition |
---|---|
table_expression | A table reference or a DAX expression that returns a table. |
Return value
True if the table is empty (has no rows), if else, False.
Remarks
This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
Example
For the below table named 'Info':
Country/Region | State | County | Total |
---|---|---|---|
IND | JK | 20 | 800 |
IND | MH | 25 | 1000 |
IND | WB | 10 | 900 |
USA | CA | 5 | 500 |
USA | WA | 10 | 900 |
EVALUATE
ROW("Any countries with count > 25?", NOT(ISEMPTY(FILTER(Info, [County]>25))))
Return value: FALSE
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho