Cheat Sheets/Power BI/ALLEXCEPT
DAX function

ALLEXCEPTDAX function reference

Ignore all filters except listed.

Syntax

dax
ALLEXCEPT(<table>, <column1> [, <column2>, …])

Examples

dax
CALCULATE(SUM(Sales[Amount]), ALLEXCEPT(Sales, Sales[Region]))
A number
dax
CALCULATE(DISTINCTCOUNT(Sales[CustomerID]), ALLEXCEPT(Sales, Sales[Year]))
Distinct customers per year, ignoring region/product/channel filters
dax
VAR CategoryTotal = CALCULATE(SUM(Sales[Amount]), ALLEXCEPT(Sales, Product[Category]))
RETURN DIVIDE(SUM(Sales[Amount]), CategoryTotal)
This row's share of its category total

Common mistakes & gotchas

Related DAX functions

From Filter context

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet