Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Formula returns of '0' Post Reply Post New Topic
Author Message
paulizorama
Newbie
Newbie
Avatar

Joined: 17 Dec 2009
Location: United Kingdom
Online Status: Offline
Posts: 14
Quote paulizorama Replybullet Topic: Formula returns of '0'
     Posted: 23 Jan 2010 at 3:15pm
Hi
If I have a field count or sum that has a nil total - how can I get it to:
a) print the numeral '0' in the report - as opposed to a blank field result - when the count/sum is zero
but
b) return the actual count/sum value when it is greater than zero?
with thanks
 
 
pauliz
IP IP Logged
vltowell
Newbie
Newbie


Joined: 24 Jan 2010
Location: Australia
Online Status: Offline
Posts: 2
Quote vltowell Replybullet Posted: 24 Jan 2010 at 4:48pm
try this:
If x is the field you are doing the count or sum for
 
if isnull(x) then 0 else x;
IP IP Logged
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