Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
You can use arithmetic operators in Multidimensional Expressions (MDX) for any arithmetic computations, including addition, subtraction, multiplication, and division.
MDX supports the arithmetic operators listed in the following table.
| Operator | Description |
|---|---|
Adds two numbers. |
|
Divides one number by another number. |
|
Multiplies two numbers. |
|
Subtracts two numbers. |
|
^ (Power) |
Raises one number by another number. |
Order of Precedence
The following rules determine the order of precedence for arithmetic operators in an MDX expression:
- When there is more than one arithmetic operator in an expression, MDX performs multiplication and division first, followed by subtraction and addition.
- When all arithmetic operators in an expression have the same level of precedence, the order of execution is left to right.
- Expressions within parentheses take precedence over all other operations.