Safe Divide function with ability to handle divide by zero case.
Optional. The alternate result to return when dividing by zero.
Result of the division between Numerator and Denominator, or AlternateResult in case there is a division by zero.
Alternate result on divide by 0 must be a constant.
DIVIDE is faster than an IF statement checking whether the denominator is zero. However, DIVIDE is executed in the formula engine and it is not as fast as a native division.
Learn more about DIVIDE in the following articles:
Other related functions are:
Contributors: Alberto Ferrari, Marco Russo, John Keegan
MSDN documentation: https://docs.microsoft.com/en-us/dax/divide-function-dax