Join Slack
Powered by
Why am i getting an error that im dividing by 0 wh...
# general
l
Livio
01/11/2024, 3:05 PM
Why am i getting an error that im dividing by 0 when i have a case statement thats checking that
b
battk
01/11/2024, 3:08 PM
you put the nvl in the wrong place if you are trying to prevent division by 0
battk
01/11/2024, 3:09 PM
you divide quantityavailable by the result of your nvl
battk
01/11/2024, 3:09 PM
which can be one of 2 possible values, one of which is 0
l
Livio
01/11/2024, 3:10 PM
but i have a when its greater than 0
Livio
01/11/2024, 3:10 PM
before division
b
battk
01/11/2024, 3:13 PM
thats not the level of analysis being done
l
Livio
01/11/2024, 3:15 PM
/nullif(NVL({custitem_quantity_sold_amazon_30},0),0) i did this and it fixed it. forgot nullif
8
Views
Open in Slack
Previous
Next