Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 unrestricted measures in Direct Query Mode", restarted my computer to be sure that it is working but still not working.
I tried
still I get the error: This step results in a query that is not supported in DirectQuery Mode.
Any choice I have? The only reason I'm using DirectQuery mode is that if I use Import Mode, weirdly enough this one view in my SQL Database always get a timeout error. Somewhere in between its getting an endless loop which is weird.
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
Are you using the DirectQuery method? Because in my case it is saying it doesn't support if when I put it
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?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
62 | |
55 | |
55 | |
36 | |
34 |
User | Count |
---|---|
76 | |
73 | |
46 | |
45 | |
43 |