Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: Return maximum Date Post Reply Post New Topic
Author Message
DAVIDX
Newbie
Newbie
Avatar

Joined: 10 Sep 2009
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote DAVIDX Replybullet Topic: Return maximum Date
    Posted: 10 Sep 2009 at 2:08am
Hi All,
 
I'm trying to return just the maximum date < paramater, but m getting issues, it is sayiong a boolean is required here.  The formulae I'm using is maximum ({HIST_TPPAPOSITION.ACCESS_STAMP}).  I imagine it's simple to solve, but I can't get it to work in the record selction formula editor.
 
Can anyone help.
 
Thanks
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 Sep 2009 at 7:03am
Sounds like you placed the
"maximum ({HIST_TPPAPOSITION.ACCESS_STAMP})"
in the select expert and not in a formula field.
If you are trying to create a field that displays the maximum value of the Access_stamp Field from all rows in the report then in the field explorer add a new formula field and use your formula there.
You can then place that field in your report canvas.
Is that what you were trying to do?


Edited by DBlank - 10 Sep 2009 at 7:06am
IP IP Logged
DAVIDX
Newbie
Newbie
Avatar

Joined: 10 Sep 2009
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote DAVIDX Replybullet Posted: 11 Sep 2009 at 2:50am
Hi Thanks, that works in a formula and returns the max date for a given group.  However I need to just select the newest records for a given criteria/group.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Sep 2009 at 6:41am
You mean you want to limit the report data set of the report to the maximum date per group?
in the select expert clcik on the Show formula box.
There is a Group Selection toggle. Switch it ti group selection
put your group selection criteria in there
Maximum(date,group)
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.029 seconds.