Skip to content

Automatic translation — the Portuguese version is the reference. View in Portuguese

MOD

On this page (10)

Remainder of the division.

FieldValue
CategoryMath
TypeScalar (operates value by value)
Arity2 arguments (fixed)
Compiles to SQL (calculated column)Yes
VersionFormula engine v3.

Aliases#

Canonical name: MOD. Accepted aliases (case-insensitive): (nenhum).

Syntax#

code
MOD(expr; arg2)

All arguments are expressions.

Returns#

Number.

Null handling#

Text that is not a number, or a blank value in a calculation, becomes a friendly error (pt-BR) — never a silent zero.

Evaluation context#

Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).

Differences from DAX#

  • DAX equivalent: MOD
  • Compatibility: Compatible with DAX
  • Note: Remainder of the division; a zero divisor becomes an error.

Examples#

code
MOD(pedidos; 2)

Example with values#

Input: 7 divided by 2.

code
MOD(7; 2)  →  1

Expected result: 1

Business example#

Normalize financial numbers — round prices, remove the sign from a deviation, compute powers/roots.

Common errors#

MOD: divisor zero.


← Back to the formula index

Related links