I am using CR 10 with Oracle 8i. I have created a report of all my products (tubes) created within a certain date range. Each tube has a unique product_# identifier and I am first grouping by this field (product_#). I am looking at tubes with defects. One tube can have multiple defects and each defect has a unique Activity_# number. For each tube (group #1), I need to find the first defect and get all of the information associated with that defect. Ideally, I would like to group by the minimum({activity_#}, {product_#}). Since it is impossible to group on formula containing a summary field, due to the fact that it takes place during the second pass, is my ONLY OPTION to create a subreport to get the minimum activity_# per product and then link it to the main report? Any other alternatives would be greatly appreciated. Subreport is taking a long time to process.
Below is an example of my report as it is with just one group.
PH Product_# Defect Code Activity_# Defect_Date
GH1 222333444
D 3300025 923854777 12/15/2003
3300051 923854232 11/15/2003
3300012 923854989 01/15/2004
111222343 3200045 903354789 04/30/2003
3200036 903354456 03/30/2003
3200027 903354123 02/30/2003
Here is my desired report with two Groups.
PH Product_# Defect Code Activity_# Defect_Date
GH1 222333444
GH2 3300051 923854232 11/15/2003
GH1 111222343
GH2 3200027 903354123 02/30/2003
Below is an example of my report as it is with just one group.
PH Product_# Defect Code Activity_# Defect_Date
GH1 222333444
D 3300025 923854777 12/15/2003
3300051 923854232 11/15/2003
3300012 923854989 01/15/2004
111222343 3200045 903354789 04/30/2003
3200036 903354456 03/30/2003
3200027 903354123 02/30/2003
Here is my desired report with two Groups.
PH Product_# Defect Code Activity_# Defect_Date
GH1 222333444
GH2 3300051 923854232 11/15/2003
GH1 111222343
GH2 3200027 903354123 02/30/2003