MOD DAX Function in Power BI

The MOD DAX function in Power BI returns the remainder after a number is divided by a divisor. The result always has the same sign as the divisor.

DAX Syntax MOD(number, divisor)

The function has the following parameters:

Example: The following formula returns 1, the remainder of 32 divided by 3.

DAX

MOD measure = MOD(32,3)

The output of the above code is shown below:

MOD dax function in Power BI

If denominator is 0, MOD function will return an error.

MOD dax function in Power BI

Key Notes: