ALLEXCEPT DAX Function (Filter)

Returns all the rows in a table except for those rows that are affected by the specified column filters.

Syntax

ALLEXCEPT ( <TableName>, <ColumnName> [, <ColumnName> [, … ] ] )
Parameter Attributes Description
TableName

The name of an existing table.

ColumnName Repeatable

A column whose filtering is to be retained. It can be part of the expanded table. A table of the expanded table can be specified, 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. It does not materialize the resulting table when called directly in a filter argument of CALCULATE or CALCULATETABLE.

Examples

Remove filters from all the columns of the Customer table but City.

ALLEXCEPT ( Customer, Customer[City] )

Remove filters from all the columns of the expanded table Sales but City.

ALLEXCEPT ( Sales, Customer[City] )

Remove filters from all the columns of the expanded table Sales but Date table and City column.

ALLEXCEPT ( Sales, 'Date', Customer[City] )

Related articles

Learn more about ALLEXCEPT in the following articles:

Related functions

Other related functions are:

Last update: Oct 20, 2018   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Jes Hansen

MSDN documentation: https://msdn.microsoft.com/en-us/query-bi/dax/allexcept-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.

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 ALLEXCEPT? Did you find any issue? Please, report it us!
All submissions will be evaluated for possible updates of the content.