DAX Operators


When several operators are combined in a single expression, the operations are ordered according to the following table, from the lowest to the highest precedence level number. If the operators have equal precedence value, they are ordered from left to right. For example:

  • If an expression contains both a sum and a comparison, the sum is executed before the comparison.
  • If an expression contains both a multiplication and division operator, they are evaluated in the order that they appear in the expression, from left to right.
Priority Level Operator Description
1 () Parentheses – grouping
1 F() Scalar functions
1 IN Inclusive OR list
2 ^ Exponentiation
3 +, – Sign – unary plus/minus (-1)
4 *, / Multiplication, division
5 +, Addition, subtraction
6 & Text concatenation
7 =, ==, <>, <, >, <=, >= Comparison operators
8 NOT Logical negation
9 && Logical AND
10 || Logical OR

Last update: Apr 29, 2022   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Jes Hansen, Martín de la Herran

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 DAX Operators? 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.