- 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.
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, andobserved_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.

