DAX Math & Trigonometric - MOD function



Description

Returns the remainder after a number is divided by a divisor. The result always has the same sign as the divisor.

Syntax

MOD (<number>, <divisor>)

Parameters

Sr.No. Parameter & Description
1

number

The number for which you want to find the remainder after the division is performed.

2

divisor

The number by which you want to divide.

Return Value

A whole number.

Remarks

If the divisor is 0 (zero), MOD returns an error.

Example

= MOD (5,2) returns 1. 
= MOD (5, -2) returns -1. 
dax_functions_mathematical_trigonometric.htm
Advertisements