Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Group Sum not Tallying with Total Count Post Reply Post New Topic
Author Message
terrikwei
Newbie
Newbie
Avatar

Joined: 20 Oct 2008
Location: Malaysia
Online Status: Offline
Posts: 3
Quote terrikwei Replybullet Topic: Group Sum not Tallying with Total Count
    Posted: 20 Oct 2008 at 10:29pm
hey all,

Need a lil help ere..

i have this formula as below:
if {@differtimeinMIN} >= 0 and {@differtimeinMIN} <= 15 then
    1
else
    0

so replicating the above formula to specific groups like 0-15,15-30,30-45,45-60,>60

The Question is :
My Group Summary doesnt tally with my Count of records

say Total Count on Orders = 695 used basic count function
but results from groups
0-15=209,15-30=190,30-45=82,45-60=65,>60=176
Totaling to 722

Any Suggestion or explanation to how am i getting such untally value?

Help is kindly appreciated

Regards,
Terri
IP IP Logged
JohnT
Groupie
Groupie
Avatar

Joined: 20 Jan 2008
Online Status: Offline
Posts: 92
Quote JohnT Replybullet Posted: 21 Oct 2008 at 6:36am

Looking at your example, I am wondering if it is because you have numbers in multiple groups.  For example - the number 15 would appear in the first group and the second group because you have <=.  Maybe you want your formula to be:

if {@differtimeinMIN} >= 0 and {@differtimeinMIN} < 15 then
    1
else
    0

 
You might try running your report for the first group only.  Check your counts and make sure they are correct.  Add the code for the second group and again, make sure your counts are correct.  Continue with all the groups.  That might make it easier to debug the problem.
 

 


Edited by JohnT - 21 Oct 2008 at 6:40am
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.