DAX Filter - HASONEVALUE function


Advertisements

Description

Returns TRUE when the context for columnName has been filtered down to one distinct value only. Otherwise, returns FALSE.

Syntax

HASONEVALUE (<columnName>) 

Parameters

Sr.No. Parameter & Description
1

columnName

The name of a column. It cannot be an expression.

Return Value

TRUE or FALSE.

Example

= HASONEVALUE (Sales[Product]) 
dax_functions_filter.htm

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements