I have created the following field to calculate a Net Income %age by Customer:
iif(Sum ({DLOG.DLREV$},{CUST.CNAME})<=0,1,(Sum ({@Net Income},{CUST.CNAME})/Sum ({DLOG.DLREV$},{CUST.CNAME})*100))
I can scroll through the report until I get a Customer with a negative Net Income %age. Then I get a "Division by zero" error.
Any thoughts?
iif(Sum ({DLOG.DLREV$},{CUST.CNAME})<=0,1,(Sum ({@Net Income},{CUST.CNAME})/Sum ({DLOG.DLREV$},{CUST.CNAME})*100))
I can scroll through the report until I get a Customer with a negative Net Income %age. Then I get a "Division by zero" error.
Any thoughts?