DAX function
NOT — DAX function reference
Invert a condition.
Syntax
dax
NOT(<logical>)
Examples
dax
NOT(ISBLANK([Sales]))
→ true / false
dax
NOT(Sales[Region] = "West")
→ true / false
dax
FILTER(Sales, NOT(ISBLANK(Sales[DiscountCode])))
→ Rows that do have a discount code
Common mistakes & gotchas
- NOT(a = b) and a <> b are logically equivalent for non-blank values, but they can diverge on blanks — test NOT(ISBLANK(...)) explicitly when blank-handling matters rather than assuming <> covers it.
- There is no unary ! operator in DAX — NOT() is the only way to negate a condition.
Related DAX functions
From Logical & error handling