ALL DAX Function (Filter)

Zwraca wszystkie wiersze w tabeli lub wszystkie wartości w kolumnie i ignoruje wszelkie zastosowane filtry.

Syntax

ALL ( [<TableNameOrColumnName>] [, <ColumnName> [, <ColumnName> [, … ] ] ] )
Parameter Attributes Description
TableNameOrColumnName Optional

Nazwa istniejącej tabeli lub kolumny.

ColumnName Optional
Repeatable

A column in the same base table. The column can be specified in optional parameters only when a column is used in the first argument, too.

Return values

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

Remarks

This function removes the corresponding filters from the filter context, just as REMOVEFILTERS does. It does not materialize the resulting table when called directly in a filter argument of CALCULATE or CALCULATETABLE .

ALL can be used as a table expression when it has at least one argument.
ALL without arguments can be used only as a CALCULATE or CALCULATETABLE modifier and removes all the filters from the filter context.

The following remarks are valid using ALL as a table expression:

  • Using a table argument, ALL returns all the rows of the table including any duplicated rows.
  • Using a single column argument, ALL returns all the unique values of the column.
  • Using two or more columns arguments, ALL returns all the unique combinations of values in multiple columns.
  • In every case, ALL includes in the result the additional blank row generated for invalid relationships.

Examples

The ALL function can be applied to either a table or a set of columns.

ALL ( Customer )

ALL ( Customer[Country], Customer[State] , Customer[City] )

Related articles

Learn more about ALL in the following articles:

Related functions

Other related functions are:

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

Contributors: Alberto Ferrari, Marco Russo

MSDN documentation: https://docs.microsoft.com/en-us/dax/all-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.

Iterator

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.

Deprecated

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

Deprecated

This parameter is deprecated and its use is not recommended.

Contribute

Want to improve the content of ALL? 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.