Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Suppressing all but 1 "similar" rows Post Reply Post New Topic
Author Message
KanadianKevin
Newbie
Newbie


Joined: 19 Aug 2013
Online Status: Offline
Posts: 12
Quote KanadianKevin Replybullet Topic: Suppressing all but 1 "similar" rows
    Posted: 19 Aug 2013 at 8:07am
I'm a CR newbie and have encountered a situation that is bending my noodle a bit.

I have a report where in some of the rows the data in the columns is identical except for the last column, which can be one of 3 kinds of identifiers: Pxxx, PMxxx, or Cxxx. So the conditions I need to satisfy are:

a) the row should only be displayed once
b) IF the identifier in the last column is PMxxx it needs to be displayed, otherwise it doesn't matter what the identifier is as it will be suppressed and just left blank.

So to clarify the report kind of looks like this:

aaa bbb ccc 1234 P12345
aaa bbb ccc 1234 PM88654
aaa bbb ccc 1234 C00123

in this case I only want to show:

aaa bbb ccc 1234 PM88654

If the data was:

aaa bbb ccc 1234 P12345
aaa bbb ccc 1234 C00123

then we would only show:

aaa bbb ccc 1234

How the heck can I accomplish this?

Thanks!!

K
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Aug 2013 at 8:41am
is there a unifying piece of data for these rows to know what is a grouping?
If so group on that field
Place all of the fields you want to see on the GH.
suppress the detail and Group footer
sort on the last field descending
right click on the last field and
select format field
select common tab
select formla for suppress
use
not (left(currentfieldvalue,2)='PM')
 
 


Edited by DBlank - 19 Aug 2013 at 8:42am
IP IP Logged
KanadianKevin
Newbie
Newbie


Joined: 19 Aug 2013
Online Status: Offline
Posts: 12
Quote KanadianKevin Replybullet Posted: 26 Aug 2013 at 7:04am
Thanks!!
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.012 seconds.