Link to home
Start Free TrialLog in
Avatar of NewFocusConsult
NewFocusConsult

asked on

How to get Max Date

Hello

I am trying to derive the Maximum Date where a document type is equal to a particular value

For instance

Maximum ( Doc_Date_ where doc_type = 'CPAY'

How can I do this calculation within a Crystal report?
SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NewFocusConsult
NewFocusConsult

ASKER

Thanks would need this value to be an input into DateDiff formula the days different to todays date.

Basically there is a list of documents with different doc types, the report is sorted by date and I need to work out the last date of a particular doc type and do a DateDiff to today and calculate the datediff by a daily rate which is already calculated.
Are you grouping by document?

Without a group you can only get the maximum of all the data.

mlmcc
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial