Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Suppressing min or max value Post Reply Post New Topic
Author Message
Vack
Newbie
Newbie


Joined: 22 Oct 2008
Location: United States
Online Status: Offline
Posts: 24
Quote Vack Replybullet Topic: Suppressing min or max value
     Posted: 04 Jun 2009 at 10:03am
I have two detail records. I want to suppress the record with the oldest date.
 
Code   Date           Amount
FMM    01/01/09      1.90
FMM    01/01/08      2.90
 
 
 
 
I would want the record with 01/01/08 to be suppressed.
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 05 Jun 2009 at 3:43am
Hi
 
Are their any groups in your report?
 
I think if you have Group on Code,then do Insert Summary and select Date Field and Type of Summary Minimum ,then you will get the Minimum of Date per Group.
 
Then Go to Details Section right click and then Click X+2 against Suppress(No Drill Down) and enter  the code below
 
Minimum ({group.tablenamefield}, {table.fieldname})={table.fieldname}
 
this will suppress the oldest date record in the details section
 
suppress the unwanted sections....
 
Cheers
Rahul
 


Edited by rahulwalawalkar - 05 Jun 2009 at 3:45am
IP IP Logged
Vack
Newbie
Newbie


Joined: 22 Oct 2008
Location: United States
Online Status: Offline
Posts: 24
Quote Vack Replybullet Posted: 05 Jun 2009 at 5:22am
That does not seem to work. This field cannot be summarized on
 
{group.tablenamefield,table.fieldname}
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 05 Jun 2009 at 6:10am
Code   Date           Amount
FMM    01/01/09      1.90
FMM    01/01/08      2.90
 
Hi
 
Group on Code
 
Insert Summary on the Date Field and select Summary Type Minimum,once you do that it will isnert Minimum date in Group Footer per Code .
 
Then Go to Details Section Right Click, select section expert then in common tab click x+2 against suppress (no drill down) in that enter the code i.e. you can select the from Report Fields Expand them
 
you wil see something similar to Group:#1:code-A:Min of table.Date
 
just double click then you will get
Minimum ({table.datefieldname}, {Table.code})={table.datefieldname}
 
{group.tablenamefield,table.fieldname} typo mistake
 
cheers
Rahul
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