Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need formula to show max date that is less than another date

Status
Not open for further replies.

dazum

Technical User
Apr 6, 2011
57
US
I am using CR11.
I need a formula that lists only Assement Dates that are less than than the Case Status date.(see example below)

Group 1(Case ID)
Details Case Status Date Assesment Date
2-15-11 3-4-11
12-9-10
11-6-08
4-26-07

I would Assessment Date to show only if it is before 3-4-11.
 
Create a formula {@newdate} like this:

if {table.assessmentdate} < {table.casestatusdate} then
{table.assessmentdate} else
date(0,0,0)

Then you can go to report->selection formula->GROUP and enter:

{@newdate} = maximum({@newdate},{table.caseID})

-LB
 
Thanks lbass! That worked great. Thanks for your help and quick response!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top