Cheat Sheets/Power BI/VALUES
DAX function

VALUESDAX function reference

Distinct values as a table.

Syntax

dax
VALUES(<table> | <column>)

Examples

dax
VALUES(Sales[Region])
A one-column table
dax
COUNTROWS(VALUES(Sales[Region]))
Number of distinct regions in context
dax
IF(COUNTROWS(VALUES(Product[Category])) = 1, SELECTEDVALUE(Product[Category]), "Multiple categories")
A safe multi-category label

Common mistakes & gotchas

Related DAX functions

From Filter context

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet