I have posted this in another forum and have not received an answer so trying in here.
Grouping Logic Based on Qty
I have a set a data that is sorted to have a C- item code to be the first line of the PurchaseOrder# then all the items that go with the C- item right below it. I need to figure out how I can make the C- item line and the items that go with it have a "group 1 number", this would be another column/field. Any items not falling under this would be "group 2". In the example attached "PurchaseOrder"=0002151 would only have 1 group because the C- item is a qty of 1 and there is only 1 item below it. On "PurchaseOrderNo"=0002172 would have 2 groups, C-ACTLIN01 and the 24 items below it would be group 2 and the 3 lines above the C-ACTLIN01 would be group 1. Any ideas on best way to do this?
Grouping Logic Based on Qty
I have a set a data that is sorted to have a C- item code to be the first line of the PurchaseOrder# then all the items that go with the C- item right below it. I need to figure out how I can make the C- item line and the items that go with it have a "group 1 number", this would be another column/field. Any items not falling under this would be "group 2". In the example attached "PurchaseOrder"=0002151 would only have 1 group because the C- item is a qty of 1 and there is only 1 item below it. On "PurchaseOrderNo"=0002172 would have 2 groups, C-ACTLIN01 and the 24 items below it would be group 2 and the 3 lines above the C-ACTLIN01 would be group 1. Any ideas on best way to do this?