Divide (MDX)

SQL Server 2012

Performs division and returns alternate result or BLANK() on division by 0.


Divide (<numerator>, <denominator> [,<alternateresult>])

numerator

The dividend or number to divide.

denominator

The divisor or number to divide by.

alternateresult

(Optional) The value returned when division by zero results in an error. When not provided, the default value is BLANK().

Alternate result on divide by 0 must be a constant.

Community Additions

ADD
Show: