> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcemedium.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# rpt_fulfillment_backlog_daily

> Daily count of Shopify orders waiting to ship, per store.

How many Shopify orders were waiting to ship, counted once a day for each store.

* **Grain:** One row per (`sm_store_id`, `snapshot_date`).
* **Date field:** `snapshot_date`, a UTC day.
* **Joins:** The orders behind the current count are in [`rpt_shopify_order_fulfillment`](https://docs.sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/rpt_shopify_order_fulfillment).

## How the count works

An order counts as open when it is `unfulfilled` or `partial` and still has units to ship, or an unknown number of units. It covers the same stores as [`rpt_shopify_order_fulfillment`](https://docs.sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/rpt_shopify_order_fulfillment): Shopify stores whose orders come entirely through SourceMedium's own Shopify connection.

Each row is the queue as counted that day, and `observed_at` says how current it is: the count reflects Shopify updates up to that time. A count of zero means the queue was clear. A missing day means no count was taken. Past days cannot be counted after the fact, so the history starts on the first day the table was counted for your store.

## Example: backlog over the last 30 days

```sql theme={null}
SELECT
  snapshot_date,
  open_count,
  observed_at
FROM `your_project.sm_transformed_v2.rpt_fulfillment_backlog_daily`
WHERE sm_store_id = 'your-sm_store_id'
  AND snapshot_date >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
ORDER BY snapshot_date
```

## Columns

| Column | Type | Description |
| - | - | - |
| `sm_store_id` | STRING | SourceMedium's unique store identifier. For Shopify stores, derived from the myshopify.com domain; for other platforms (Amazon, TikTok Shop, Walmart.com), uses platform-specific identifiers. |
| `observed_at` | TIMESTAMP | How current the count is: it reflects Shopify updates up to this time. |
| `open_count` | INT64 | Orders waiting to ship: unfulfilled or partly fulfilled, with units left to ship or an unknown number. |
| `snapshot_date` | DATE | UTC day the queue was counted. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.