DESK-DAL-20260807A.
The warehouse — Snowflake, BigQuery, Redshift, or Postgres data warehouse — is where these four land via ELT and are modeled together. Without that shared grain, every question becomes a cross-system query the team writes by hand, and OTIF or dwell debates turn into spreadsheet wars instead of reproducible SQL.
| Metric | Definition | Primary source |
|---|---|---|
| OTIF | On-time delivery rate × in-full rate, by lane and customer | TMS + EDI 214 + EDI 210 |
| Dwell time | Time at origin or destination beyond the appointment window | Telematics + TMS appointment |
| Cost per shipment | Total cost (line haul + accessorials + fuel) per shipment, by lane | TMS + EDI 210 |
| Route deviation | Distance or time variance vs the planned route | Telematics |
| Carrier scorecard | OTIF + claims rate + cost variance + tender acceptance, monthly | TMS + WMS + EDI |
| Exception rate | Share of shipments with status code anomaly | EDI 214 + TMS |
Most weekly work is repeating these six segmentations along lane, carrier, customer, and time. The remaining work is investigating drift in any of the six.
Industry publications still disagree on exact OTIF formulas, which is why McKinsey’s OTIF definition paper (Trading Partner Alliance survey of 24 major North American retailers and CPG manufacturers) matters: 92% of those companies agreed an industry-standard OTIF definition would create value. Use that figure when stakeholders argue about windows and case-fill vs delivery-date grain—not as your own OTIF target.
McKinsey’s digital logistics survey (260+ shipper and provider respondents) reports that more than 85% of respondents say digital logistics projects added organizational value—yet many still cite data quality, systems integration, and change management as the payoff delays. That maps directly to why a reconciled warehouse layer sits under serious data analysis in logistics programs.
On performance lift, McKinsey’s agility research finds more agile supply chains report service levels about seven percentage points higher and inventory about 23 days lower than less agile peers (How agile is your supply chain?). For vendor landscape scans—not scorecards—see Gartner Peer Insights — Transportation Management Systems.
OTIF is the most weighted logistics KPI for shippers because retailers penalize it directly. The decomposition is simple but the analytical work concentrates in the failure modes:
OTIF = on-time delivery rate × in-full rate
on-time delivery rate = shipments delivered within delivery window / total shipments
in-full rate = shipments delivered with full quantity / total shipments
Two SQL examples on a typical schema:
-- On-time delivery rate by carrier, last 4 weeks
SELECT carrier_id,
COUNT(*) AS shipments,
SUM(CASE WHEN actual_delivery <= delivery_window_end THEN 1 ELSE 0 END) * 1.0 / COUNT(*) AS on_time_rate
FROM shipments
WHERE pickup_date >= CURRENT_DATE - INTERVAL '28 day'
GROUP BY carrier_id
ORDER BY on_time_rate DESC;
-- In-full failure top causes, last 4 weeks
SELECT failure_reason, COUNT(*) AS occurrences
FROM shipment_exceptions
WHERE exception_type = 'short_shipment'
AND pickup_date >= CURRENT_DATE - INTERVAL '28 day'
GROUP BY failure_reason
ORDER BY occurrences DESC
LIMIT 10;
The analytical pattern is the same across logistics metrics: a top-line rate, a segmentation by carrier or lane, and a drill into failure reasons. See the PostgreSQL data analysis tools guide for the dialect-specific syntax on date arithmetic.
McKinsey’s consumer-sector OTIF work is the right external anchor when retail chargebacks disagree with your TMS grain. Internally, keep the product of on-time × in-full, then segment failures—the analytical work does not stop at the top-line rate.
OTIF. On-time, in-full — on-time delivery rate × in-full rate, usually by lane and customer.
Dwell time. Time at origin or destination beyond the appointment window (telematics + TMS appointments).
Carrier scorecard. Monthly blend of OTIF, claims rate, cost variance, and tender acceptance.
Exception rate. Share of shipments with a status-code anomaly (EDI 214 + TMS).
Label: InfiniSynapse first-party data — Source: InfiniSynapse 2025–2026 Logistics Analytics Desk Composite (n=14) from anonymized 3PL and shipper dwell/OTIF triage reviews. Not a paid market survey. Principles: editorial standards.
| Desk finding | Share / result | Implication |
|---|---|---|
| Dwell spikes with dock congestion / door shortage as top cause | 38% of spike weeks | WMS door utilization + labor join before blaming carriers |
| Missed appointment / early arrival | 28% | TMS appointment discipline beats telematics-only alerts |
| Receiving labor shortfall | 20% | Ops staffing is a data join, not a telematics bug |
| Median time-to-ranked-cause with written join playbook | ~45 min vs ~4.5 h ad-hoc | Playbooks beat hero SQL |
Anonymized case (Peer 3PL A): A regional 3PL saw Wednesday dwell at one DC jump ~2.1× vs the prior four-week median. The team joined telematics arrival stamps to TMS appointments and WMS unload events. Ranked causes showed two doors offline for maintenance plus a receiving crew short two heads on first shift—not a carrier-quality collapse. Renegotiation was deferred; door maintenance and labor coverage fixed the spike within two weeks. Composite pattern, not a named customer endorsement.
Quotable desk assertion: in this n=14 set, a written four-source join playbook cut median dwell-spike investigation from ~4.5 hours to ~45 minutes. Re-measure on your tickets before citing internally. Teams that treat data analysis in logistics as a join problem—not a single-dashboard problem—see the same pattern.
The dashboard shows the spike. The analyst joins telematics (when trucks arrived) to TMS appointments (when they were scheduled) to WMS receiving events (when actually unloaded). The driver of the spike is usually one of: missed appointment, dock-door congestion, labor shortfall on receiving. The output is a ranked list of candidate causes with the underlying SQL.
Carrier scorecard, last 90 days vs prior 90 days, delta on OTIF, claims rate, cost variance, tender acceptance. The carriers with the biggest negative delta on two or more dimensions are the ones to renegotiate or remove.
Cost per shipment × shipments per period × customer, plus accessorial charges allocated by customer. Combined with revenue per customer and gross margin, this surfaces customers where the freight cost exceeds the contribution.
| Rung | Stack | When you stay | When you graduate |
|---|---|---|---|
| 1 | TMS-native dashboards + Excel | Small fleet, single carrier | Cross-system questions become weekly |
| 2 | Warehouse + ELT (TMS + WMS) + BI | 3PL or shipper with 3–10 carriers and dozens of lanes | Ad-hoc questions outpace dashboard build |
| 3 | Stack 2 + telematics + EDI integration + dbt | Enterprise shipper, 20+ carriers, regulated retail customers | Operations managers need on-demand answers without analyst tickets |
| 4 | Stack 3 + AI data agent | Open-ended questions on cost-to-serve, lane mix, carrier risk | — |
Modern data analysis in logistics still depends on standing dashboards for the recurring 80%. Agents earn the seat on the ad-hoc 20%—the cross-system joins that used to wait in a BI queue while a dock or retailer chargeback burned cash. Three patterns where an AI data analyst changes the workflow:
The pattern is the same as other domains: dashboards answer the standing 80%, the agent answers the ad-hoc 20%. See AI database query for the connection setup and database + knowledge base binding for why a bound business glossary matters in logistics where carrier and lane definitions vary by customer.
Product recommendation (commercial)
Connect Snowflake, BigQuery, Postgres, or another warehouse where your TMS, WMS, telematics, and EDI feeds land. Seed a small business glossary — what counts as an exception, which appointment window applies. Then ask one question the dashboard does not answer.
Try InfiniSynapse onlineReporting by: William Zhu (cofounder; desk experience with 3PL/shipper analytics stacks). Last updated: 2026-08-07 · Next scheduled review: 2026-11-07 · Marker DESK-DAL-20260807A.
This methods guide synthesizes TMS and WMS vendor documentation, telematics references from Samsara and Geotab, DCSA standards, MIT CTL research, public logistics studies including McKinsey OTIF and digital logistics publications, Gartner Peer Insights for TMS, and InfiniSynapse desk composites (n=14). The six-metric anchor, OTIF decomposition, and tool ladder reflect observed practice across operating logistics data teams.
Conflict of interest: InfiniSynapse publishes this guide and sells an enterprise AI data analyst. The page leads with methods, treats InfiniSynapse as one option among many, labels the product CTA commercial, and links external sources for third-party numeric claims. Desk percentages are first-party only.
Update cadence: Reviewed every 90 days for accuracy and link health. Corrections: zhuhl@infinisynapse.com · editorial corrections.