Table of contents
TOC
Collapse the table of content
Expand the table of content

NOT Function (DAX)

Owen Duncan|Last Updated: 5/22/2018

Changes FALSE to TRUE, or TRUE to FALSE.

Syntax

NOT(<logical>)  

Parameters

TermDefinition
logicalA value or expression that can be evaluated to TRUE or FALSE.

Return Value

TRUE OR FALSE.

Example

The following example retrieves values from the calculated column that was created to illustrate the IF function. For that example, the calculated column was named using the default name, Calculated Column1, and contains the following formula: =IF([Orders]<300,"true","false")

The formula checks the value in the column, [Orders], and returns "true" if the number of orders is under 300.

Now create a new calculated column, Calculated Column2, and type the following formula.

=NOT([CalculatedColumn1])  

For each row in Calculated Column1, the values "true" and "false" are interpreted as the logical values TRUE or FALSE, and the NOT function returns the logical opposite of that value.

See Also

TRUE Function (DAX)
FALSE Function (DAX)
IF Function (DAX)
DAX Function Reference

© 2018 Microsoft