Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Supress Blanks Post Reply Post New Topic
Author Message
gstace
Newbie
Newbie


Joined: 20 May 2014
Online Status: Offline
Posts: 4
Quote gstace Replybullet Topic: Supress Blanks
    Posted: 21 May 2014 at 12:17am
Hi

I have a report field which looks at response times. We want to find the  average time from request received to reponse given. Both Request Time and Response Given time are in Date time format. I have worked out the time differences and the averages but there are occasions where a request is made but  reponse is not given for various reasons therefore there some requests times with blanks for Response Given time and it would appear that the average calculation is counting these blanks for the divide by part of the average.

How can I supress these blanks so they are not counted in the average

Hope that makes some vague kind of sense!
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 29 May 2014 at 3:26am
Rather than just using the "Count()" summary, I would create a formula like this:

if not IsNull({Response Given}) then 1 else 0

You would then sum this field to get the number to divide by in your average.

-Dell
IP IP Logged
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.031 seconds.