RedHeadedStepITChild
IS-IT--Management
I need help with a group selection. I cannot seem to get this to work, and at this point I think I've been working the issue too long.
Background info on the report. Using Crystal XI and a DB2 database on AS400 v5r3.
The report shows Shop order information. It is grouped in the following manner:
GP1 - department
GP2 - customer order number
GP3 - release date
GP4 - shop order number
GP5 - child item description
GP6 - child item number
GP7 - item location
details
Groups 1 through 5 are for sorting purposes only. Nothing is shown here.
Here is an attempt at a visual of the report.
so# pItem pDesc rDate dDate component qReq loc lQty
-------------------------------------------------------------------
nnn nnn xxx date date nnn nnn
... ... ... .... .... ... ... nnn nnn
The location fields return multiple records and quantity on-hand.
OK - here is the problem.
I need to delete the complete shop order from the report if the sum of any components quantity on hand is <= 0.
The way I have been trying to go about this is doing a distinct count of items on the shop order (to be placed in the shop order group). Then if the sum of quantity on hand is > 1 then assign 1 to that item else 0. I then would like to be able to sum each result at the shop order group footer. if the distinct count of items on the shop order = the sum of the quantity on hand result then keep the shop order else drop it.
This will not work for me, because crystal is telling me that my formula assigning 1 or 0 cannot be summarized.
Does anybody have any other ideas? I hope I have given enough information - if not, just ask me and I'll answer any further questions.
Thanks in advance.
Jason
Background info on the report. Using Crystal XI and a DB2 database on AS400 v5r3.
The report shows Shop order information. It is grouped in the following manner:
GP1 - department
GP2 - customer order number
GP3 - release date
GP4 - shop order number
GP5 - child item description
GP6 - child item number
GP7 - item location
details
Groups 1 through 5 are for sorting purposes only. Nothing is shown here.
Here is an attempt at a visual of the report.
so# pItem pDesc rDate dDate component qReq loc lQty
-------------------------------------------------------------------
nnn nnn xxx date date nnn nnn
... ... ... .... .... ... ... nnn nnn
The location fields return multiple records and quantity on-hand.
OK - here is the problem.
I need to delete the complete shop order from the report if the sum of any components quantity on hand is <= 0.
The way I have been trying to go about this is doing a distinct count of items on the shop order (to be placed in the shop order group). Then if the sum of quantity on hand is > 1 then assign 1 to that item else 0. I then would like to be able to sum each result at the shop order group footer. if the distinct count of items on the shop order = the sum of the quantity on hand result then keep the shop order else drop it.
This will not work for me, because crystal is telling me that my formula assigning 1 or 0 cannot be summarized.
Does anybody have any other ideas? I hope I have given enough information - if not, just ask me and I'll answer any further questions.
Thanks in advance.
Jason