Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: formula help Post Reply Post New Topic
Author Message
nitrotech
Groupie
Groupie


Joined: 30 Jan 2013
Location: United States
Online Status: Offline
Posts: 42
Quote nitrotech Replybullet Topic: formula help
     Posted: 07 Jan 2014 at 5:15am
I have these 3 fields
{EInfo.hireDate}
{EInfo.rehireDate}
{EInfo.termDate}



I want to chose which ever date is the most recent
Want does the formula look like?

Sorry for dumb question?
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 07 Jan 2014 at 6:47am
something like
if {EInfo.hireDate} > {EInfo.rehireDate} and
{EInfo.hireDate} > {EInfo.termDate}
then {EInfo.hireDate}
else if
{EInfo.rehireDate}>{EInfo.hireDate} and
{EInfo.rehireDate} > {EInfo.termDate}
then {EInfo.rehireDate} else if
{EInfo.termDate} > {EInfo.hireDate}and
{EInfo.termDate} > {EInfo.rehireDate} then {EInfo.termDate}
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 07 Jan 2014 at 10:33am
2 words of caution
this won't return anything if 2 have matching dates
Unless your formula is set to use default values for nulls this will not evaluate for any row that any field is null.
IP IP Logged
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Posted: 09 Jan 2014 at 3:26am
@nitrotech if this is for M3 get in touch with me...I can help. 
IP IP Logged
nitrotech
Groupie
Groupie


Joined: 30 Jan 2013
Location: United States
Online Status: Offline
Posts: 42
Quote nitrotech Replybullet Posted: 22 Jan 2014 at 11:28am
Do you write crystal reports for M3?

Thanks

Larry
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