Can anyone help before i go mad...
I have the following data and i need to get a minimum of the dates, which i have done. However i then need to get the corresponding order and price to the min date to show in the group footer.
Detail lines:
13/06/2005 R000038 3,500
03/06/2005 R000035 3,500
20/05/2005 R000035 3,500
31/12/9999 R000008 3,500
Group footer:
20/05/2005
(31/12/1999 Is a dummy date to replace the nil value so i can get a minimum).
The minimum above from the detail section is shown as 20/05/2005 so i need to show R000035 on the group footer line. I wrote a formula as follows:
If Minimum ({@PODueDate}, {MBG110.CUSTNAME}) = {@PODueDate} then {MBD070.PORDER_ITEM}
If there are no dates like 31/12/9999 in the group then it pulls out the correct order number. However for the example above the result is blank.
Can anyone suggest a formula to solve this?
I have the following data and i need to get a minimum of the dates, which i have done. However i then need to get the corresponding order and price to the min date to show in the group footer.
Detail lines:
13/06/2005 R000038 3,500
03/06/2005 R000035 3,500
20/05/2005 R000035 3,500
31/12/9999 R000008 3,500
Group footer:
20/05/2005
(31/12/1999 Is a dummy date to replace the nil value so i can get a minimum).
The minimum above from the detail section is shown as 20/05/2005 so i need to show R000035 on the group footer line. I wrote a formula as follows:
If Minimum ({@PODueDate}, {MBG110.CUSTNAME}) = {@PODueDate} then {MBD070.PORDER_ITEM}
If there are no dates like 31/12/9999 in the group then it pulls out the correct order number. However for the example above the result is blank.
Can anyone suggest a formula to solve this?