DIVIDE

Updated on

DIVIDE is a DAX function that safely divides two numbers and handles cases where the denominator is zero.

Syntax

DIVIDE(
   Numerator,
   Denominator,
   AlternateResult
)
Argument Properties Description
Numerator Numerator.
Denominator Denominator.
AlternateResult Optional Optional. The alternate result to return when dividing by zero.

Return Values

  • A decimal number.

Remarks

Example

The following example returns 2.5.

= DIVIDE(5,2)

Example 1

The following example returns BLANK.

= DIVIDE(5,0)

Example 2

The following example returns 1.

= DIVIDE(5,0,1)

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/divide-function-dax

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy