Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Select records based on field value Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Sep 2010 at 6:47am
well, to confuse you more this has to do with when data passes occur.
Summaries like a your DISTINCTCOUNT and your SUM occur after record selection but before group selections. So it is doing the DistinctCount before it omits the groups. YOu can fix this pretty simply by using a Running Total instead.
Create a Running Total as
Name='DocumentCount' (or whatever you want)
Field to Sumamrize=Profile.Docnum
Type=DistinctCount
Evaluate=Use a formula
Reset=Never
Place in the report footer.
RT's do not work in headers (again based on the sequence of data pass an).
IP IP Logged
<< Prev  Page  of 2
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