maiven gateway · online··
manifest · 2d ago
Sign in
Back to catalog
MAIVENmodelmarts

mart_fulfillment_daily

certified
mart table

Daily fulfillment rollup — OTIF, on-time, in-full, and pick-accuracy counts by segment, region, temp class, and carrier.

Definition

The pre-aggregated operational-analytics rollup for the 3PL fulfillment domain. One row per (ship_month × client_segment × site_region × temp_class × carrier) carrying raw count columns (never pre-divided rates): order_count, units_shipped, otif_count, on_time_count, in_full_count, accurate_lines, total_lines. Only shipped orders are counted (ship_date is not null), so the counts are correct denominators for on-time/OTIF rates. ship_month is toStartOfMonth(ship_date), so this is a trend surface. It feeds two metrics — fulfillment (OTIF/on-time/in-full rates) and pick_accuracy (accurate_lines/total_lines) — which recompute rates with nullif formula measures so multi-bucket roll-ups stay window-correct. Nullable dims are coalesced to unknown so they stay MergeTree-safe and visible.

Watch out for
  • highDividing count columns client-side

    OTIF/pick-accuracy are ratios of two count columns; divide them client-side across buckets and you get a biased average-of-averages. Request the otif_rate / pick_accuracy formula measures — the metric layer applies nullif and re-divides window-correctly.

  • mediumReading a single ship_month as a full-period result

    Grain is keyed on ship_month; sum counts across the relevant month range before dividing, don't read one month in isolation.

  • mediumExpecting per-client rows here

    This rollup is de-identified to segment/region — it carries no client_id. For client-scoped fulfillment use mart_client_scorecard / mart_order_outcomes (both row-policy scoped).

Questions this answers
  • “What was OTIF for life_sciences clients in the EU last quarter?”
  • “How does pick accuracy trend by temp class?”
  • “Which carrier has the best on-time rate for frozen goods?”
12 of 12
Column
Type
Description
Tests · PII
ship_month
Date
First day of the ship month (toStartOfMonth(ship_date)). Sort + partition key.
1 test
client_segment
String
automotive / chemicals / fmcg / fashion / high_tech / life_sciences / unknown.
1 test
site_region
String
EU / UK / NA / APAC / unknown.
1 test
temp_class
String
ambient / chilled / frozen / unknown.
1 test
carrier
String
Carrier code; unknown when unmapped.
1 test
order_count
UInt64
count(distinct order_id) in the bucket (shipped-only).
1 test
units_shipped
Nullable(Int64)
sum(units).
1 test
otif_count
UInt64
countIf(is_otif = 1).
1 test
on_time_count
UInt64
countIf(is_on_time = 1).
1 test
in_full_count
UInt64
countIf(is_in_full = 1) (order shipped complete).
1 test
accurate_lines
UInt64
sum(accurate_lines) across orders in bucket.
1 test
total_lines
UInt64
sum(total_lines).
1 test