Forum Discussion
Anonymous
4 years agoNot applicable
Divide by Zero error
Hi, Here is my dax measure: AVG = CALCULATE(IF( OR(ABS([Sales]) = 0, ABS([Pounds]) = 0),0,DIVIDE([Sales],[Pounds))) I got correct answer for all columns but except one, it shows very small num...
- 4 years ago
for except this error you should use ROUND
AVG = var _sales=Round([Sales],2) var _pounds = Round([Pounds],2) var _result = CALCULATE(IF( OR(_sales = 0, _pounds = 0),0,DIVIDE(_sales,_pounds )) return _result
SolomonovAnton
4 years agoSuper User
hello
it is mean what in [pounds] you have number 2.66E-14
another words it is not 0 it is very small number