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

mart_orders_daily

certified
mart incremental

How much paid order volume did we book, by when / where / who.

Definition

Completed-order revenue, aggregated daily by customer segment and country. "Revenue-eligible" excludes orders in cancelled or refunded status — the same definition Finance uses for the monthly GMV report. AOV is exposed as a formula measure so callers don't recompute it from a multi-bucket window (sum-of-averages bias).

What it means
Watch out for
  • highRecomputing AOV from a multi-bucket result

    `avg_order_value` is a formula measure (sum(revenue) / sum(paid_orders_count)) — correct under any GROUP BY. Dividing two already-aggregated columns client-side yields a different number when the buckets have unequal sizes.

  • highTreating `unique_customers_daily` as distinct over a window

    It is a SUM of per-day distinct counts — a customer who orders on three days contributes 3. For true distinct-over-window, use the `customer_health` metric's `customers_count` measure.

  • mediumMixing `orders_count` with `revenue` filters

    `orders_count` includes cancelled + refunded; `revenue` and `paid_orders_count` exclude them. Picking the wrong pair inflates conversion / AOV ratios.

Questions this answers
  • “What was revenue last month, broken down by segment?”
  • “Top 5 countries by revenue this quarter, vs last year.”
  • “AOV trend for enterprise customers over the last 8 weeks.”
Related metrics
  • customer_health

    Per-customer snapshot — answers "who drove the revenue number" and gives a true distinct customer count.

  • support_volume

    Cost-side counterpart. Use together when answering "are sales coming with extra support load?"

  • product_reviews

    Quality leading indicator — drift here often precedes revenue softness.

Reconciles with
  • Finance GMV report (monthly close)
    last verified · 2026-04-30drift · 0.40%
7 of 7
Column
Type
Description
Tests · PII
order_day
Date
Calendar date of the orders. Part of the sort/partition key.
1 test
customer_segment
String
Customer segment at order time. `unknown` when the customer row was unavailable.
customer_country
String
ISO-2 customer country at order time. `unknown` when the customer row was unavailable. Drives the `region_us_analyst` row policy.
orders_count
UInt64
Total order rows in the bucket — includes cancelled / refunded.
paid_orders_count
UInt64
Order rows in the bucket where `is_revenue_order` holds (status not in cancelled/refunded).
revenue
Decimal(14, 2)
Sum of `total_amount` for revenue-eligible orders in the bucket. Decimal(14,2).
2 tests
unique_customers
UInt64
Distinct customer count across all orders in the bucket (including cancelled/refunded — uses `uniqExact` over `customer_id`).