Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: Distinct count plus 1? Post Reply Post New Topic
Author Message
weered1
Newbie
Newbie
Avatar

Joined: 06 Jun 2007
Location: United States
Online Status: Offline
Posts: 3
Quote weered1 Replybullet Topic: Distinct count plus 1?
    Posted: 02 Oct 2007 at 7:52am

I have noticed that my distinctcounts always equal distinctcount plus 1. When the count should be 40, it's 41. I have no idea why...I have over 50 distinctcounts on my report and this is happening for each.

Has anyone ever had this happen, and if so, is there a way around it?
 
I have created a formula that does a distinctcount(field)-1 and this makes the count correct, but when I have to put the count directly on my report, I can't get around it adding 1 every time.
 
Thanks for your help to this strange problem.
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 06 Oct 2007 at 9:58am
I am not sure if this is related. But if you have groupings on your report and depending how  your counts are configured CR can add one more pass to the group.  It might be adding that to your counter. If you have groupings think through how CR makes passes to generate the report data, look at your groups, and see where to to place the counter.
 
I have encountered this at times when creating manual running totals on data fields. Its a different problem than you report, but might have the same cause and solution.
 
Regards,
 
John W.
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.016 seconds.