{
  "updated": "2026-10-27",
  "kind": "authored synthetic worked example",
  "native_runtime_verified": false,
  "proof_scope": "Defined arithmetic expectations only; runtime and own-data checks are separate receipts.",
  "sample": "/examples/sales-dashboard/sample.csv",
  "title": "Sales dashboard example: revenue by region and month",
  "row_grain": "category-month",
  "fields": [
    [
      "Period",
      "Booking month in YYYY-MM format; each completed order belongs to exactly one month. Your own CSV may use numeric periods, YYYY-MM or YYYY-MM-DD; Q1/Q2 labels are not supported."
    ],
    [
      "Region",
      "East or West, a synthetic sales region assigned to the completed orders."
    ],
    [
      "Revenue",
      "Booked revenue in illustrative currency units, already aggregated to region-month grain."
    ],
    [
      "Orders",
      "Number of completed orders for that region-month; sum this column, not CSV row counts."
    ]
  ],
  "metrics": [
    {
      "name": "Booked revenue",
      "formula": "SUM(Revenue)",
      "value": "150,000",
      "definition": "Add revenue over all six region-month rows."
    },
    {
      "name": "Completed orders",
      "formula": "SUM(Orders)",
      "value": "75",
      "definition": "Add the Orders column; the CSV has six summary rows, not six orders."
    },
    {
      "name": "Revenue per order",
      "formula": "SUM(Revenue) / SUM(Orders)",
      "value": "2,000",
      "definition": "150,000 / 75; a zero order count leaves this ratio undefined."
    },
    {
      "name": "East revenue share",
      "formula": "100 × East revenue / SUM(Revenue)",
      "value": "60%",
      "definition": "90,000 / 150,000 × 100; West contributes the remaining 40%."
    }
  ],
  "worked": "Monthly revenue rises from 40,000 in January to 50,000 in February and 60,000 in March. East contributes 90,000 from 45 orders and West 60,000 from 30 orders. The regional revenue and order totals reconcile to 150,000 and 75.",
  "rows": [
    {
      "Period": "2026-01",
      "Region": "East",
      "Revenue": "24000",
      "Orders": "12"
    },
    {
      "Period": "2026-01",
      "Region": "West",
      "Revenue": "16000",
      "Orders": "8"
    },
    {
      "Period": "2026-02",
      "Region": "East",
      "Revenue": "30000",
      "Orders": "15"
    },
    {
      "Period": "2026-02",
      "Region": "West",
      "Revenue": "20000",
      "Orders": "10"
    },
    {
      "Period": "2026-03",
      "Region": "East",
      "Revenue": "36000",
      "Orders": "18"
    },
    {
      "Period": "2026-03",
      "Region": "West",
      "Revenue": "24000",
      "Orders": "12"
    }
  ]
}
