Cross-sell Rate
Cross-sell Rate: The percentage of customers active at period start who bought an additional product in the period.
Formula
Cross-sell Rate = Customers at start of period who bought an additional product in the period / Customers at start of period × 100 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.amendment_type = 'cross_sell') / count_distinct(field.customer_id where field.customer_status = 'active') at period_start over cohort(field.customer_id, period_start) Unit: percent (the formula yields an unscaled ratio)
Notes: Over the customers active on the first day of the period (cohort method): a customer counts when a cross_sell amendment of theirs falls in the period. A customer who joins and buys a second product inside the period is outside this rate.
Data requirements
Grain: Customer cohort at period start · Frequency: Monthly · Aggregation: cohort (month) · Staged: yes, a cohort or prior-period comparison that a staged dataset makes cheaper · Main source: Billing.
| Field | Dataset | Type |
|---|---|---|
amendment_type | amendment_event | string |
customer_id | amendment_event | string |
customer_id | customer | string |
customer_status | customer | string |
event_date | amendment_event | date |
snapshot_date | customer | date |
Example SQL (Postgres)
SELECT (CAST((SELECT COUNT(DISTINCT customer_id) FROM amendment_event WHERE event_date >= :period_start AND event_date <= :period_end AND amendment_type = 'cross_sell' AND customer_id IN (SELECT customer_id FROM customer WHERE snapshot_date = :period_start AND customer_status = 'active')) AS DOUBLE PRECISION) / NULLIF((SELECT COUNT(DISTINCT customer_id) FROM customer WHERE snapshot_date = :period_start AND customer_status = 'active' AND customer_id IN (SELECT customer_id FROM customer WHERE snapshot_date = :period_start AND customer_status = 'active')), 0)) AS cross_sell_rate From an agent: with the GASP MCP server, call
lookup_metric({ "name": "Cross-sell Rate" }) or generate_query({ "metric": "Cross-sell Rate", "adapter": "<your adapter JSON>" }).