Running CR10 on an Informix database. I have a need to generate a graph and report based on purchase order status over a period of time. The purchase orders either are 'closed' which is found at the header level of the PO, or else "complete" which is deduced by looking at the line items to see if payments equal commitments. I have a formula to calculate the commitmenet minus the payment at the line item level and at the PO level to determine if any remaining funds are left. If true, then the order is not complete and if the status is not closed, then the order is not part of the count at all. For every PO, I need a counter to determine how many PO's fall into the two categories during each week for a given period of time. Can someone please provide some guidance as to the correct formulas to handle the counts that can then be used to graph by? Any assistance would be greatly appreciated.
Randy
Randy