Cheat Sheets/Power BI/EXCEPT
DAX function

EXCEPTDAX function reference

Rows in the first table only.

Syntax

dax
EXCEPT(<table1>, <table2>)

Examples

dax
EXCEPT(VALUES(A[ID]), VALUES(B[ID]))
A table
dax
EXCEPT(VALUES(Customer[CustomerID]), CALCULATETABLE(VALUES(Sales[CustomerID]), Sales[Year] = 2026))
Customers who exist but have not purchased in 2026 — a lapsed/at-risk list
dax
COUNTROWS(EXCEPT(VALUES(Product[ProductID]), VALUES(Sales[ProductID])))
Count of products that have never sold

Common mistakes & gotchas

Related DAX functions

From Tables & set operations

← Back to the Power BI (DAX) cheat sheet