Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Reporting & Notification Forums - Reporting
Forum to discuss reports for SalesLogix including Crystal, SQL Reports, etc. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Reporting | New ThreadView:  Search:  
 Author  Thread: Division by Zero
Chokri
Posts: 62
 
Division by ZeroYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Apr 07 6:00 AM
fiogf49gjkf0d
I am using Crystal v8.5 and get the following message when I run my report: 'Division by Zero', my data does consist of some 0 values. I am using the following formula:

{#CountFamily}/{#CountFamily%Conversion} *100
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Division by ZeroYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Apr 07 11:58 AM
The data may not consist of a zero, but you're using the CountFamily as a percent of Conversion, this is likely resulting in a zero for some data and then causing the division by zero.

Maybe try this instead (very rusty on Crystal syntax so this may or may not be right )

if ({#CountFamily%Conversion} > 0) 
then {#CountFamily}/{#CountFamily%Conversion} *100
else 0


(or something like that)

-Ryan
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 7:42:13 AM