NOT
Applies to:
Calculated column
Calculated table
Measure
Visual calculation
Changes FALSE to TRUE, or TRUE to FALSE.
Syntax
NOT(<logical>)
Parameters
Term | Definition |
---|---|
logical | A 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.
Related content
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho