Skip to content

Mod

Description

Mod returns the remainder after division.

Syntax

Mod(dividend, divisor)

Parameters

Parameter Required Type Description
dividend Yes Number, field, or expression Value to divide.
divisor Yes Number, field, or expression Divisor.

Notes

Use this function in calculated fields, metric expressions, or query expressions where the function category is supported.

Example

Mod(OrderID, 10)

The expression returns the calculated result according to the current query context.