cancel
Showing results for 
Search instead for 
Did you mean: 

How do I select the row with the most recent date/time?

Former Member
0 Kudos

We have a medication report that needs the last administration time displayed. Can anyone help with a selection formula that chooses the max date?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The easiest thing to do is sort by the date (descending), and show the first record, suppressing all others until the next medication, patient, or whatever your grouping is. This is done with a global variable: Set it to FALSE at the beginning of the group(s), suppress the detail line based on the value of the variable, and then set it to TRUE (which can also be done in the Suppress Format formula).

HTH,

Carl

Answers (0)