Forum Discussion
justin777
8 years agoFrequent Visitor
Checking for divided by zero in Direct Query
Hi Guys, I can't seem to figure out how to properly solve the divided by zero. I have read some threads on the same subject but nothing works on my end. I already did check the box "Allow unr...
v-danhe-msft
8 years agoMicrosoft Employee
Hi justin777,
Based on my test, you can use the “if” function to divide the data with 0 that you want to show like the picture below, you can also use the “Divide” function in DAX with your data in report. https://msdn.microsoft.com/en-us/query-bi/dax/divide-function-dax
Regards,
Daniel He
justin777
8 years agoFrequent Visitor
Are you using the DirectQuery method? Because in my case it is saying it doesn't support if when I put it
- MarcoV7 years agoNew Member
For me this solution works. Thanks!
Are you certain your not using the traditional (excel-like) IF-statement (Capitalized and with brackets), instead of the if- then-else (lowecase) variant?