DAX Math & Trigonometric - MOD function


Advertisements

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

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements