GASP

Average Services Deal Size

Average Services Deal Size: Average value of services engagements.

Formula

Avg Services Deal = Total services bookings / Number of services engagements

Computable definition

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

sum(field.opportunity_amount where field.revenue_type = 'services') / count_distinct(field.opportunity_id where field.revenue_type = 'services')

Unit: currency

Notes: Services bookings divided by services engagements, one engagement per booked deal.

Data requirements

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

Field Dataset Type
opportunity_amount opportunity decimal
opportunity_id opportunity string
revenue_type opportunity string
snapshot_date opportunity date
Example SQL (Postgres)
SELECT (CAST((SELECT COALESCE(SUM(opportunity_amount), 0) FROM opportunity WHERE snapshot_date = :period_end AND revenue_type = 'services') AS DOUBLE PRECISION) / NULLIF((SELECT COUNT(DISTINCT opportunity_id) FROM opportunity WHERE snapshot_date = :period_end AND revenue_type = 'services'), 0)) AS average_services_deal_size

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

Try searching for:

↑↓navigate↵select