Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Top 2 Dates Post Reply Post New Topic
Author Message
vgillis
Newbie
Newbie


Joined: 05 Mar 2013
Online Status: Offline
Posts: 10
Quote vgillis Replybullet Topic: Top 2 Dates
     Posted: 17 May 2013 at 4:31am
Question..

Table1
person id
Gift Date
Gift Amt

I went to display the last two records for each person..
So Max gift date and the second to max gift date.

Any ideas?


Thanks.
Veronica
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 May 2013 at 10:48am
one way
sort on the date field
do a count of any non null field at the group level
insert a running total as a count of the same field with a reset on the group level
use these 2 items together in a suppresion formula in the section expert under the detail section
count(field,group)-{#RunningTotal}>2
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