DAX Filter - HASONEFILTER function
Advertisements
Description
Returns TRUE when the number of directly filtered values on columnName is one and only one. Otherwise, returns FALSE.
Syntax
HASONEFILTER (<columnName>)
Parameters
Sr.No. | Parameter & Description |
---|---|
1 |
columnName The name of an existing column, using standard DAX syntax. It cannot be an expression. |
Return Value
TRUE or FALSE.
Remarks
DAX HASONEFILTER function is similar to DAX HASONEVALUE function, with the difference that HASONEFILTER works by a direct filter, while HASONEVALUE works based on crossfilters.
Example
= HASONEFILTER (Sales[Product])
dax_functions_filter.htm
Advertisements