Table of contents
TOC
Collapse the table of content
Expand the table of content

DIVIDE Function (DAX)

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

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

Syntax

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

Parameters

TermDefinition
numeratorThe dividend or number to divide.
denominatorThe 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().

Return Value

A decimal number.

Remarks

Alternate result on divide by 0 must be a constant.

Example

The following example returns 2.5.

=DIVIDE(5,2)  

Example

The following example returns BLANK.

=DIVIDE(5,0)  

Example

The following example returns 1.

=DIVIDE(5,0,1)  

See Also

QUOTIENT Function (DAX)
Math and Trig Functions (DAX)

© 2018 Microsoft