Mar 22 2023 08:25 PM - edited Mar 22 2023 08:32 PM
Situation:
I have a back order register which acts as a backup dispatch record, balanced against an actual dispatch register when discrepancies occur. Every action performed in the creation and partial/total fill of a back order is recorded on a new row, currently totalling 600+. Once an ORDER has no remaining open ITEM back orders its STATUS is marked as COMPLETE, which automatically marks all previous rows containing that ORDER as COMPLETE*.
*ie.
Dilemma:
In order to view only current open back orders, I haven't found use in a PivotTable due to the many rows with duplicate ORDER/ITEMs. I would however like to find a way to automate open back order information in a separate sheet.
Current manual solution:
Advice appreciated on how I might automate this, gurus.
Mar 23 2023 05:02 AM
=LET(rng,A2:F13,status_empty,
FILTER(rng,TAKE(DROP(rng,,5),,1)=""),
concatorderitem,CONCATENATE(DROP(DROP(status_empty,,-4),,1),DROP(DROP(status_empty,,-3),,2)),
maxperdate,BYROW(concatorderitem,LAMBDA(row,MAX(IF(row=DROP(DROP(status_empty,,-4),,1)&DROP(DROP(status_empty,,-3),,2),TAKE(status_empty,,1))))),
VSTACK({"date"."order"."item"."qty fill"."qty bo"."status"},FILTER(status_empty,(maxperdate=TAKE(status_empty,,1))*(concatorderitem=DROP(DROP(status_empty,,-4),,1)&DROP(DROP(status_empty,,-3),,2))*(DROP(DROP(status_empty,,-1),,4)>0))))
Does this return the expected result? The result range can be used to dynamically set up a Pivot Table.