Cheat Sheets/Power BI/DIVIDE
DAX function

DIVIDEDAX function reference

Safe division.

Syntax

dax
DIVIDE(<numerator>, <denominator>, [<alternateResult>])

Examples

dax
DIVIDE([Profit], [Sales], 0)
A number
dax
DIVIDE(SUM(Sales[Profit]), SUM(Sales[Amount]))
Margin %, returns BLANK() instead of an error when Sales is 0 or blank
dax
DIVIDE([Actual], [Budget], 1) - 1
Variance vs. budget, defaulting to 0% instead of erroring when there is no budget row

Common mistakes & gotchas

Related DAX functions

From Logical & error handling

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet