Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Supress record from count Post Reply Post New Topic
Author Message
lorimack
Groupie
Groupie


Joined: 03 Nov 2009
Online Status: Offline
Posts: 48
Quote lorimack Replybullet Topic: Supress record from count
    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
 
IP IP Logged
martbar
Newbie
Newbie


Joined: 04 Apr 2012
Location: United States
Online Status: Offline
Posts: 15
Quote martbar Replybullet Posted: 16 Oct 2012 at 11:41am

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

IP IP Logged
lorimack
Groupie
Groupie


Joined: 03 Nov 2009
Online Status: Offline
Posts: 48
Quote lorimack Replybullet Posted: 17 Oct 2012 at 2:37am
where would i enter that?
IP IP Logged
martbar
Newbie
Newbie


Joined: 04 Apr 2012
Location: United States
Online Status: Offline
Posts: 15
Quote martbar Replybullet 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
IP IP Logged
lorimack
Groupie
Groupie


Joined: 03 Nov 2009
Online Status: Offline
Posts: 48
Quote lorimack Replybullet Posted: 17 Oct 2012 at 4:02am
Thank you it worked!!!! 
IP IP Logged
martbar
Newbie
Newbie


Joined: 04 Apr 2012
Location: United States
Online Status: Offline
Posts: 15
Quote martbar Replybullet Posted: 17 Oct 2012 at 4:52am
you are very welcome
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.