Calculate Supplier Lead Times From PO CSVs
Short answer
Calculate supplier lead times from purchase order and receipt exports in Assistly. Separate first delivery, complete receipt, and open order lines.
The number that cost AED 4,800 in rebooking fees was an average. The freight desk in Dubai ordered printed exhibition graphics from a new supplier on the strength of "9.4 days average lead time", and the shipment landed on day 26. Nobody had lied: the spreadsheet's average came from a partial export that had quietly dropped the slowest orders. Grace L. now asks two questions of every lead-time number before anyone plans against it: what rule produced it, and how many lines stand behind it.
That is what this check produces: elapsed days per order line from two files you already have, the purchase order export and the receipts export, with first-receipt and complete-receipt reported separately and every exclusion counted. Assistly does the joining, the day math, and the summary from the files you attach; the supplier judgment, like whether 10 days is acceptable, stays with the buyer.
A prompt to copy into Assistly
Using the attached purchase order export and receipts export, calculate elapsed calendar days per order line, keyed on PO number plus line number, confirming item codes match on both sides. Start from the PO issue date and use the receipt posting date. Report two results per line: first receipt date and days, and complete receipt date and days, where complete receipt is the first date cumulative received quantity reaches ordered quantity, with cumulative figures shown. Exclude cancelled-before-receipt lines from both averages, keep cancelled-after-partial and open lines in the first-receipt average only, and give every supplier average with its included and excluded line counts. List every receipt with no matching PO line, every receipt dated before its issue date, and every over-receipt. Produce an Excel file of line-level results and a summary stating the rules used, and flag any indication that an input was truncated.Try this task
See it in practice
One line, two honest answers
What to give Assistly. Purchase order WO-5940, line 2, 800 cartons of printed mailers, issued 3 May. The receipts export shows 500 cartons received 8 May and 300 received 13 May. Start rule for this batch: PO issue date; end rule: receipt posting date; unit: elapsed calendar days.
What Assistly returns. First receipt: 8 May minus 3 May = 5 days. Complete receipt: cumulative quantity reaches 800 on 13 May, which is 10 days after issue, and the cumulative figures at each receipt are shown so the completion date can be checked by hand. Both numbers sit on the line record with no exclusion, because the line closed fully. The two answers exist because they answer different questions: 5 days is how fast this supplier starts delivering, which matters for safety stock; 10 days is how long the whole order takes, which matters for a client's exhibition date. A blended number would have hidden the spread between truck one and truck two.
How to verify it. Count May 3 to May 8 on a calendar, then May 3 to May 13; five and ten. Add 500 + 300 and confirm 800. If the receipts file had carried no quantities, complete receipt could not exist at all, and the record would say first receipt only, with the limitation noted.
Three lines, one usable average
What to give Assistly. Purchase order 4519 from the same supplier, three lines issued 2 June. Line 1: 200 units of label stock, received in full 9 June. Line 2: 150 units of adhesive, 90 received 12 June, balance cancelled by the supplier 16 June. Line 3: 40 rolls of film, cancelled 5 June with nothing received.
What Assistly returns. Line 1: first and complete receipt both 7 days, included in every average. Line 2: first receipt 10 days, no complete receipt, exclusion reason cancelled after partial receipt, so it counts in the first-receipt average and stays out of the complete-receipt average. Line 3: cancelled before receipt, excluded from both, counted separately so the exclusion is visible. The supplier's complete-receipt average is then reported as one line out of three, written as "1 of 3 lines", because an average without its denominator is the error that started this article. Rules were fixed before the run: cancelled-after-partial counts in first-receipt only, cancelled-before-receipt counts nowhere, and the same rules will apply to every supplier in the batch, because one supplier measured under different rules is not a comparison.
How to verify it. Add the line 2 receipts by hand: 90 of 150, no completion. Confirm the cancellation row carries the 16 June date. Recompute line 1's seven days. Then check the output's included-plus-excluded count equals three for this order; any other total means a line was dropped or doubled.
The rules that make the numbers comparable
Two definitions get chosen once and written down. The start is the PO issue date, unless your team measures from supplier acknowledgment, in which case that field is used everywhere; mixing the two across suppliers makes the batch meaningless. The end is the receipt posting date, which reflects when stock became usable at your dock, not when the truck left the supplier. Unit is elapsed calendar days including weekends; business days are a different calculation with a different calendar and never share a column with them. If an unusual lead time comes from a disputed receipt, compare the delivery note with the purchase order before including the line in the supplier report.
Lines, not headers, carry the numbers. Key each receipt to PO number plus line number, and confirm the item code agrees on both sides for every row, because a receipt posted to the wrong line shifts a lead time by days and leaves the arithmetic looking perfect. Watch the edge cases: a receipt dated before its issue date is a keying error or a reused order number, flagged rather than allowed to produce a negative; duplicate receipt rows understate completion time until removed; an over-receipt flags a quantity review with completion dated at the first day the target was reached; and supplier names that spell differently across files split one supplier into two unless an ID column is used for grouping.
What the batch must survive
Run the batch in one order: confirm row counts against both source files, state the rules, request one row per line with first and complete receipt days, exclusions, and the exceptions list (unmatched receipts, pre-issue receipts, over-receipts). Large exports get split by supplier or quarter with per-part totals checked against the source, and this is where the AED 4,800 lesson lives: truncation removes rows from the end of a file, and the rows at the end of a date-sorted export are the slowest ones, so a truncated file produces a plausible average that flatters exactly the supplier you were worried about. Verification takes four checks: included plus excluded equals the input line count; three random lines recomputed by hand from the source dates; received quantities matching ordered quantities or flagged as over-receipts; and no complete receipt earlier than its first receipt. The handoff states the date range, both definitions, each supplier's denominator, and the open exceptions, plus one standing sentence: the figures describe past receipts, and any planning date built from them is an estimate the buyer judges, not a commitment the supplier made. Continue with a related workflow: Compare POs With Supplier Confirmations
Questions and answers
- Issue date or supplier acknowledgment as the start?
Either is defensible, but one choice applies to every supplier in the batch, documented with the reason and kept stable across runs so trends stay comparable. If the export carries both fields, record which you used in the working file header.
- Can Assistly tell me if a supplier is performing badly?
It can calculate the lead times in your files and summarize them with their denominators. Whether ten days is good depends on your targets, your product mix, and what you compare it against, which is the buyer's judgment.
- The receipts file has no quantities. Can I still get lead times?
First receipt, yes; complete receipt, no, because completion depends on cumulative quantity. Report first receipt only, note the limitation in the handoff, and do not treat the last receipt date as completion unless your written rule defines it that way and you have confirmed it applies here.
- Why do some lines show a receipt dated before the PO was issued?
Usually a keying error or a receipt posted against a previous order that reused the number. The check flags it rather than producing a negative lead time, and the buyer confirms against the source system before the line enters any average.