How does the HASONEVALUE function (DAX) work?
Returns TRUE if only one distinct value has been filtered to the context for columnName. Otherwise, it is FALSE.
HASONEVALUE Formula Syntax
How do you use the HASONEVALUE function?
An equivalent expression for HASONEVALUE() is
COUNTROWS(VALUES(<columnName>)) = 1.
Related Blog Posts
Related Support Forum Posts
Considerations when using the HASONEVALUE function
HASONEVALUE() allows you to identify if your expression is being evaluated in the context of a single value for columnName.
Related Video Tutorials
Formula examples using the HASONEVALUE function
Related DAX Functions
Related Course Modules
To access our comprehensive DAX formula reference guide just insert your email address below. The resource will download immediately and we’ll also email it to you.