NOT Function (DAX)

 

Changes FALSE to TRUE, or TRUE to FALSE.

NOT(<logical>)  

Parameters

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

TRUE OR FALSE.

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.

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

Community Additions

Show: