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!

minimum date 1

Status
Not open for further replies.
May 25, 2006
5
US
Hello -

I have a table which includes the following fields:

ID Task Task Result Date
ABC Edit Pass 02/23/2006
ABC Edit Pass 02/25/2006
EFG Edit Pass 02/26/2006
HIJ Edit Pass 03/01/2006
XYZ Edit Pass 03/03/2006

I am trying to build a report based on only the records that have the earliest date tied to the ID. For example, I want to include the first record for ID ABC with the date of 02/23/2006, but don't need to pull in the other record for ID ABC.

I have a grouping based on ID and inserted a formula field using minimum{table.Date}. However, it displays just one date which is the minumum date for the entire table.

Any suggestions on how i can fix this?

Thanks




 
Try changing your formula to look at the {Group.Date} rather than the {table.Date}
 
Go to report->selection formula->GROUP and enter:

{table.date} = minimum({table.date},{table.ID})

If you need to do calculations across IDs, you will need to use running totals, since non-group selected values would contribute to inserted summaries.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top