Newbies svolin Posted May 3, 2010 Newbies Posted May 3, 2010 I have a problem extracting the earliest date in a set of filtered and sorted records. Both the 'GetRecord' and 'Min' functions return the lowest record number, rather than the record with the earliest date. I have to sort by by name by month, quarter and year (separate layouts) and i want to show the actual earliest and latest dates in the Trailing Grand Summary. Thanks for any help
comment Posted May 3, 2010 Posted May 3, 2010 Try a summary field defined as Minimum of [Datefield]. This is assuming by "set" you mean "found set" and that Datefield is of type Date. Records do not have to be sorted by Datefield for this. Alternatively, if your records ARE sorted by Datefield, ascending, then = GetNthRecord ( Datefield ; 1 ) will return the earliest date, and = GetNthRecord ( Datefield ; Get ( FoundCount ) ) the latest (these calculations need to be unstored).
Newbies svolin Posted May 4, 2010 Author Newbies Posted May 4, 2010 Thanks. Works like a charm. So Simple - That loud, rhythmic thud you hear is me, beating my head against the wall. Again, Thanks
Recommended Posts
This topic is 5376 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now