Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: show last month closing as this monthopening entry Post Reply Post New Topic
<< Prev Page  of 2
Author Message
AMMAR
Newbie
Newbie
Avatar

Joined: 29 Oct 2008
Online Status: Offline
Posts: 11
Quote AMMAR Replybullet Posted: 06 May 2009 at 6:50am
thank you for this, i got this far i am able to reset all the supressed reords to 0 which sorts out my sum issue but the problem i get now is that the result from this colum is used in a division to give me an average and i get a "cannot divide by 0 " error.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 06 May 2009 at 7:27am
before the average, check if the variable =0, if it is print an appropriate message or value (has to be the same as the average, so either the average becomes a string or the appropriate value is 0 (probably))
 
If the average is not in a formula, make a formula for it like:
if sum({table.field}, {group}) = 0 then
 0
else
 someNumber / sum({table.field},{group})
IP IP Logged
<< Prev Page  of 2
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.