Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Getting a Summary count without suppressed data Post Reply Post New Topic
Author Message
stratos
Newbie
Newbie


Joined: 22 Mar 2010
Location: United States
Online Status: Offline
Posts: 3
Quote stratos Replybullet Topic: Getting a Summary count without suppressed data
    Posted: 22 Mar 2010 at 10:40am
In my report I used the section expert to suppress details when column a and column be equal a set value.

This works fine and the data is suppressed where applicable, but when I try to get a Summary count it still count the data that was suppressed.

I do not know how to create a count of all the data minus the suppressed details.

Any help would be greatly appreciated. Thank You
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Mar 2010 at 10:51am
Use a Running Total (you can also do this with variable formulas)...
 
RT Name= 'Count'
Field to Sumamrize= The field you want to count
Type of Summary = Count
Evaluate = use a formula
NOT(field a= whatever and field b=wahtever)
Reset= Never (for report total)
Place in Reprot footer
RTs do not work in headers.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 22 Mar 2010 at 10:55am
Suppressing just hides the data, it does not remove it from the report.
 
Are you doing a running total?  If so, are you evaluating all records?  If so, then that is why.  You can the running total evaluate on any boolean expression.  Thus if you have the running total evaluate on the 'NOT' expression for your suppression, then that should 'eliminate' the values you do not want to count.
 
I hope this helps.
IP IP Logged
stratos
Newbie
Newbie


Joined: 22 Mar 2010
Location: United States
Online Status: Offline
Posts: 3
Quote stratos Replybullet Posted: 22 Mar 2010 at 10:59am
That worked perfectly.

Thanks a million...
IP IP Logged
MikeSa
Newbie
Newbie
Avatar

Joined: 08 Apr 2011
Location: United States
Online Status: Offline
Posts: 3
Quote MikeSa Replybullet Posted: 04 Aug 2011 at 3:08pm
This is the same issue I was having trouble with. I have grouping by "location" and doing a running total on "procedure" with a reset on change of "location". It works perfectly except for the last "location" the running total always has a count of 1 less than the total.
Any help would be appreciated
 
Mike
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.