Forum Discussion
Infinity and Divide; and figuring out DAX
- 4 years ago
Is there a reason you keep ignoring my suggestion to ROUND the denominator?
This is not infinity. The DIVIDE function exists to handle division by zero but won't recognize the denominator as zero if it's not actually a zero but something very close to zero.
If you type in Accuracy % = DIVIDE( 70500.00 , 0.00, 0) as the definition for your measure, you will not get the huge result you are currently seeing.
Please try a version with ROUND like I suggested.
Thank you and yes I did do a test with just the numbers and not pulling from the dataset. And yes it responds as you say. However when using the dataset I get the infinity looking number as I have discribed. I created two seperate measures: one for the Numerator and one for the denominator and both of those show 70500.00 & 0.00 respectively. However if I use the
- AlexisOlson4 years agoSuper User
Is there a reason you keep ignoring my suggestion to ROUND the denominator?
- Anonymous4 years agoNot applicable
Well Alexis thank you very much that was the trick. I was stuck on infinity and / or why this large number when the denominator was really 0.00. But by adding the ROUND to both my measure producing this I now get the right results. Again thank you very much.
- AlexisOlson4 years agoSuper User
Yep. This issue is that it wasn't really zero, even if it logically should have been. Possibly a floating-point error.