Why am i getting an error that im dividing by 0 wh...
# general
l
Why am i getting an error that im dividing by 0 when i have a case statement thats checking that
b
you put the nvl in the wrong place if you are trying to prevent division by 0
you divide quantityavailable by the result of your nvl
which can be one of 2 possible values, one of which is 0
l
but i have a when its greater than 0
before division
b
thats not the level of analysis being done
l
/nullif(NVL({custitem_quantity_sold_amazon_30},0),0) i did this and it fixed it. forgot nullif