GASP

Active Accounts

Active Accounts: Customer accounts with at least one active user in the period.

Formula

Active Accounts = Count of accounts with ≥1 active user in period

Computable definition

The canonical formula in the GASP formula grammar. The MCP server compiles it to SQL over the datasets listed below.

count_distinct(field.customer_id where field.product_event_type = 'qualifying')

Unit: count

Notes: Accounts with at least one active user in the period.

Data requirements

Grain: Per event, aggregate monthly · Frequency: Daily · Aggregation: aggregate (month) · Staged: no · Main source: Product Analytics.

Field Dataset Type
customer_id product_event string
event_date product_event date
product_event_type product_event string
Example SQL (Postgres)
SELECT (SELECT COUNT(DISTINCT customer_id) FROM product_event WHERE event_date >= :period_start AND event_date <= :period_end AND product_event_type = 'qualifying') AS active_accounts

From an agent: with the GASP MCP server, call lookup_metric({ "name": "Active Accounts" }) or generate_query({ "metric": "Active Accounts", "adapter": "<your adapter JSON>" }).

What It Tells You

Account-level engagement (vs user-level).

Try searching for:

↑↓navigate↵select