Print Page | Close Window

Supress record from count

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=17779
Printed Date: 05 May 2024 at 10:23am


Topic: Supress record from count
Posted By: lorimack
Subject: Supress record from count
Date Posted: 16 Oct 2012 at 10:42am
Im trying to get a distinct count of lwmain.incident.
 
lwmain.incident could have multiple instances of lwchrg.chrgdesc.  When grouping by lwchrg.chrgdesc, it counts each record.  I want to get a total count
of all lwmain.incident grouping by lwchrg.desc
 
for instance 
 
fire
lwmain.incidnet
1
2
3
theft
lwmain.incidnet
2
4
5
total number of incidents = 5, my report tells me 6
 
I want the total numbe of lwmain.incident even though the list is grouped by lwchrg.chrgdesc  I need to only count each instance of a number
 



Replies:
Posted By: martbar
Date Posted: 16 Oct 2012 at 11:41am

So distinctcount({lwmain.incident},{lwchrg.chrgdesc}) doesn’t work?



Posted By: lorimack
Date Posted: 17 Oct 2012 at 2:37am
where would i enter that?


Posted By: martbar
Date Posted: 17 Oct 2012 at 3:11am
create a formula and then drag it into the area of the report you are going to display


Posted By: lorimack
Date Posted: 17 Oct 2012 at 4:02am
Thank you it worked!!!! 


Posted By: martbar
Date Posted: 17 Oct 2012 at 4:52am
you are very welcome



Print Page | Close Window