Logical Functions


Logical functions act upon an expression to return information about the values or sets in the expression.

Function Description
AND Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE.
BITAND Returns a bitwise 'AND' of two numbers.
BITOR Returns a bitwise 'OR' of two numbers.
BITXOR Returns a bitwise 'XOR' of two numbers.
COALESCE Returns the first argument that does not evaluate to a blank value. If all arguments evaluate to blank values, BLANK is returned.
FALSE Returns the logical value FALSE.
IF Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE.
IF.EAGER Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE. Uses eager execution plan.
IFERROR Returns value_if_error if the first expression is an error and the value of the expression itself otherwise.
NOT Changes FALSE to TRUE, or TRUE to FALSE.
OR Returns TRUE if any of the arguments are TRUE, and returns FALSE if all arguments are FALSE.
SWITCH Returns different results depending on the value of an expression.
TRUE Returns the logical value TRUE.

Last update: Apr 11, 2024   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

2018-2024 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of BITXOR? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.