DAX Function Guide

ALLEXCEPT Function (DAX)
Empty image or helper icon

Sam McKay

CEO & Founder

How does the ALLEXCEPT Function (DAX) work?
The ALLEXPECT function (DAX) removes all context filters in the table except filters that have been applied to the specified columns.
ALLEXCEPT Function (DAX) Formula Syntax

ALLEXCEPT(
     <table>, <column>[,<column>[,…]]
)

How do you use the ALLEXCEPT Function (DAX)?

This function cannot be used alone; instead, it serves as an intermediary function to change the results on which another calculation is performed. 

This is a convenient way for you to remove the filters on many, but not all, columns in a table. 

Related Blog Posts

Loading

Considerations when using the ALLEXCEPT Function (DAX)?

Its parameters are the table in which all context filters are removed and the column in which the context filters are retained. The column can be a part of the expanded table. 

The first argument to ALLEXCEPT is that it needs to serve as a reference to a base table, while all the subsequent arguments must serve as references to base columns. This function cannot be used in both table and column expressions. 

Related Video Tutorials

Loading

Formula examples using the ALLEXCEPT Function (DAX)

=CALCULATE(
SUM(ResellerSales_USD[SalesAmount_USD]),
ALLEXCEPT(DateTime, DateTime[CalendarYear])
)

ALLEXCEPT ( Customer, Customer[City] )

ALLEXCEPT ( Sales, ‘Date’, Customer[City] )

Related Courses

Loading