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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Most recent date 1

Status
Not open for further replies.

dkellam

Technical User
Sep 17, 2007
13
US
I am trying to filter my report with the most recent effective date. When I use the formula under select expert in CRXI, {SURCHARGE_FWA_RESULTS.EFFECTIVE_DATE} = maximum {SURCHARGE_FWA_RESULTS.EFFECTIVE_DATE}, I get an error message stating "The remaining text does not appear to be a part of the formula" The remaining text highlighted is the 2nd {SURCHARGE_FWA_RESULTS.EFFECTIVE_DATE}. Am I approaching this correctly or should I be filtering somewhere else?
 
You need parentheticals:

{SURCHARGE_FWA_RESULTS.EFFECTIVE_DATE} = maximum( {SURCHARGE_FWA_RESULTS.EFFECTIVE_DATE})

I notice that you had a comma, did you mean for each group? If so, use Report->Selection Formula-Group:

{SURCHARGE_FWA_RESULTS.EFFECTIVE_DATE} = maximum( {SURCHARGE_FWA_RESULTS.EFFECTIVE_DATE}, {table.group})

-k
 
I am fairly new to Crystal reports, table.group references what the report is currently group by?
 
If in fact you want the max for each group, yes.

I asked if you needed it for each group and you ignored the question.

-k
 
Thank you so much! I have been working on this off and on for a week! Your suggestion worked perfectly. Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top