4,000 / 4,500
- Population
- 4,500 completed orders with no accepted cancellation
- Numerator
- 4,000 passing records
- Denominator
- 4,500 selected records
- Grain
- Order
- Event date
- Final customer receipt
- Owner
- Finance business partner
Thirty versioned order-to-delivery metrics connect business definitions to named order and delivery fields, executed SQL, retained DAX measures and the reports that use them.
Finance waits for the final customer receipt. The current report counts lines at warehouse despatch. The project shows the exact policy and implementation change needed to make the two reports agree.
One delivery rate, two answers
A wholesale distributor uses on-time delivery in its Finance pack, Operations review and Power BI report. Finance waits until the customer has received the complete order. The report counts each line when the warehouse despatches it.
The Director of Operations needs one decision: should a split order count as on time before its final quantity reaches the customer, and how should partial and fully cancelled orders be treated?
Assign the order to its original promise month, reduce only accepted partial cancellations and exclude fully cancelled orders. Publish 88.0%: 4,224 of 4,800 eligible orders.
The definition before the formula
The agreed rule assigns the order to the month of its original promise. It subtracts only accepted cancelled quantity and passes the order when the remaining quantity is received on or before that promise.
Use the stable order number and all lines that belong to it.
The first customer promise assigns the order to a reporting month.
Partial cancellation changes the quantity still owed; full cancellation removes the order.
A split delivery is complete only when the remaining quantity reaches the customer.
The same numerator and denominator are retained for SQL, Excel and DAX.
Native metric catalogue
The workbook records 30 definitions across order intake, promise management, warehouse fulfilment, customer delivery, backlog, delivery service and warehouse capacity. Every definition has an executed SQL result, a retained DAX reference, a mapping to the order and delivery records, an owner, a version and an effective date.
Give monthly service report one repeatable answer for on-time and in-full delivery.
Used by Monthly service report; Finance management pack; Power BI delivery report. The sample limitation is retained with the definition, so the generated records are not presented as a distributor's live performance.
The passport records the population, numerator, denominator, date, exclusions, owner, steward, target, implementation references, approval and limitation in one place.
Thirty definitions in one operating domain
Orders created and rolling 13-week intake are not interchangeable. Delivery cases raised and cases completed use different dates. Warehouse people and full-time-equivalent capacity remain separate measures. Each row states the rule and the reports it affects.
Six definition disputes recorded
The decision log records calendar month versus rolling period, created versus completed date, people versus FTE, reopened cases, gross versus net value and simple versus quantity-weighted average. Related measures keep different IDs and clear labels.
Order and delivery fields before the percentage
The catalogue uses the customer order system, warehouse despatch scans, customer receipt confirmations, delivery service cases and a monthly warehouse staffing file. The mapping shows where each measure begins before SQL or DAX applies the agreed rule.
Verified rule comparison
4,000 / 4,500
9,140 / 10,000
4,224 / 4,800
build/sql/02_metric_model.sql#MET-DEL-001Metric Catalogue!A17build/power-bi/order_delivery_measures.dax#MET-DEL-001One order through the rule
The order has two lines and a promise date of 2025-06-10. Both lines leave the warehouse before that date, so the current report marks them on time.
Six units reach the customer first. The remaining four arrive on 2025-06-12, two days after the promise. The agreed order-level rule therefore fails the order.
6 units · PRD-0005
The current line-level report marks line 1 on time at warehouse despatch.6 units · PRD-0005
The first receipt supplies 6 units; the agreed rule waits for the remaining 4.4 units · PRD-0006
The current line-level report marks line 2 on time at warehouse despatch.4 units · PRD-0006
This final receipt completes the order two days after promise, so the agreed order-level rule fails.Passes both lines because each line was despatched by the promise date.
Fails because the final customer receipt was after the promise date.
Fails at order grain because completion occurs at the final receipt.
Three retained implementations
DuckDB builds the order-level model and produces the verified numerator and denominator. The workbook independently applies the eligibility and receipt-date formula to 5,000 orders. The DAX and TMDL are checked for the same fields and operators but have not been run in Power BI Desktop.
Share of eligible orders received in full by the original promise.
build/sql/02_metric_model.sql#MET-DEL-001
Metric Catalogue!A17
build/power-bi/order_delivery_measures.dax#MET-DEL-001
Version and approval history
OTIF moves from a documented disagreement to a tested definition and then to version 1.0, effective 1 July 2025. The full catalogue retains the same version, date, owner and approval state so a report author can see which rule should be used.
16 checks before report release
Seed 240605 recreates the same 120,000 orders, 250,000 lines and 180,000 events, 7,200 delivery cases and 96 warehouse-month records across 24 months.
PASS · observed 120000
PASS · observed 250000
PASS · observed 180000
PASS · observed 120000
PASS · observed 0
PASS · observed 0
PASS · observed 4000/4500
PASS · observed 9140/10000
PASS · observed 4224/4800
PASS · observed 2 lines / 4 events
PASS · observed 0/1
PASS · observed 2024-07-01 to 2026-06-30
PASS · observed 30 metric results
PASS · observed 0 orphan promise changes
PASS · observed 0 orphan delivery cases
PASS · observed 24 months / 4 warehouses
Provenance and limits
The dataset is deterministic non-client example data generated from a documented order, line and delivery-event model. No customer or vendor records are used.
The project proves 30 executed SQL results, a headlessly generated Excel catalogue, retained DAX definitions and the order trace. It does not prove a deployed Power BI model, live approvals, production security or scheduled refresh.
A live organisation must approve its own promise date, completion event, cancellation policy, exclusions and target before adopting the definition.
The verifier rebuilds the retained dataset from seed 240605, compares six output hashes, opens and resaves the XLSX in LibreOffice and rejects catalogue, trace, formula, image or reconciliation drift.
Next step
Start with the measures people dispute or the failed checks that need clearer ownership before reporting.