Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Suppress is duplicate Post Reply Post New Topic
Author Message
el_chente23
Newbie
Newbie
Avatar

Joined: 25 Jul 2011
Location: Mexico
Online Status: Offline
Posts: 3
Quote el_chente23 Replybullet Topic: Suppress is duplicate
     Posted: 25 Jul 2011 at 1:38pm
Hi

i been a report in crystal by sql query, that return something like

Concept   Qty.        Unit              Details
Name 1     35           inch             detail 1
Name 1     35           inch             detail 2
Name 2     23           pound            detail 1
Name 3     10           pound            detail 1

i try no repeat the concept, qty and unit, i want to show something like

Concept   Qty.        Unit              Details
Name 1     35           inch             detail 1
                                         detail 2
Name 2     23           pound            detail 1
Name 3     10           pound            detail 1

I tried the Suppress is duplicate option, that works by the first column because it never repeat, but the next columns doesnt works, in the example suppress the last two units and that cant be

I tried to find a way to know if an object is suppressed, and suppress the next columns, also i tried with control = previous(control) and control = next(control)

the first one suppress all repeat item and the next suppress the first items

Any sugestions?

regards
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 26 Jul 2011 at 2:57am

when you run your query in sql do you get the duplicate values even if there are not multipled details per name?

try to use select distinct or check your joins
sharona
IP IP Logged
el_chente23
Newbie
Newbie
Avatar

Joined: 25 Jul 2011
Location: Mexico
Online Status: Offline
Posts: 3
Quote el_chente23 Replybullet Posted: 26 Jul 2011 at 3:06am
No, they no duplicate, just duplicate the first three columns and is correct, because my query are head and detail and all the fields (the first three) are head and the last column is detail, i want suppress the headers columns without use group section

regards
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 26 Jul 2011 at 3:17am

not sure if you conditional supression is not working if there is another way except to group the report

sharona
IP IP Logged
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet Posted: 26 Jul 2011 at 10:58am
If it's being caused by your joins then go to the section expert and place this in the formula field of "Suppress (No-Drilldown) :


{table.field}=previous({table.field})

This is where your {table.field} are the join.

Leave the check box unchecked.
IP IP Logged
el_chente23
Newbie
Newbie
Avatar

Joined: 25 Jul 2011
Location: Mexico
Online Status: Offline
Posts: 3
Quote el_chente23 Replybullet Posted: 26 Jul 2011 at 1:20pm
Holly sh*t, its works, thanks a lot man

regards
IP IP Logged
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