Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Avg
IIf
Lag
Max
Min
Mtd
Qtd
Sum
Var
Wtd
Ytd
Expand Minimize

Divide (MDX)

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

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:
© 2015 Microsoft