> ## 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_support_backlog_daily

> Daily count of open support tickets, per store and help desk.

How many support tickets were open, counted once a day for each store and help desk.

* **Grain:** One row per (`sm_store_id`, `source_system`, `snapshot_date`).
* **Date field:** `snapshot_date`, a UTC day.
* **Filters to start with:** `source_system` (`gorgias`, `richpanel`).
* **Joins:** The tickets themselves are in [`obt_customer_support_tickets`](https://docs.sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_customer_support_tickets).

## How the count works

A ticket counts when its status is open and it is not marked as spam. Gorgias and Richpanel are covered, and a store with both has a row for each.

Each row is the queue as counted that day, and `observed_at` says how current it is: the count reflects that help desk's 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: open tickets over the last 30 days

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

## 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 that help desk's updates up to this time. |
| `open_count` | INT64 | Open tickets not marked as spam. |
| `snapshot_date` | DATE | UTC day the queue was counted. |
| `source_system` | STRING | Help desk the tickets come from: gorgias or richpanel. |


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