DISTINCT DAX Function (Table manipulation)

Zwraca jednokolumnową tabelę zawierającą różne (unikatowe) wartości w kolumnie dla argumentu kolumny. Może też zwracać wiele kolumn z kombinacją różnych (unikatowych) wartości dla argumentu z wyrażeniem tabeli.


DISTINCT ( <ColumnNameOrTableExpr> )
Parameter Attributes Description

Kolumna (lub wyrażenie tabeli), z której mają zostać zwrócone unikatowe wartości (lub kombinacja wartości).

Return values

Table An entire table or a table with one or more columns.

A column of unique values if the parameter is a single column. If the parameter is a table expression, the result has the same columns and remove only duplicated rows.


If the parameter is a single table, the result of DISTINCT is affected by the current filter context. In this case it is important to understand the differences with VALUES, which might add an additional blank row in certain conditions.
If the parameter is a table expression, DISTINCT returns a table by removing duplicate rows provided by the table expression.

Related articles

Learn more about DISTINCT in the following articles:

Related functions

Other related functions are:

Last update: Dec 14, 2019   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Gerald Artman

MSDN documentation: https://docs.microsoft.com/en-us/dax/distinct-function-dax

DAX Conventions
Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.


Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.


This function is deprecated. Jump to the Alternatives section to see the function to use.


This parameter is deprecated and its use is not recommended.


Want to improve the content of DISTINCT? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.