GASP

Partner Win Rate

Partner Win Rate: Win rate on partner-involved opportunities.

Formula

Partner Win Rate = Partner deals won / (Partner deals won + Partner deals lost) × 100

Computable definition

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

count(field.opportunity_id where field.partner_id is not null and field.opportunity_stage = 'closed_won' and in_period(field.close_date)) / count(field.opportunity_id where field.partner_id is not null and field.opportunity_stage in ('closed_won', 'closed_lost') and in_period(field.close_date))

Unit: percent (the formula yields an unscaled ratio)

Data requirements

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

Field Dataset Type
close_date opportunity date
opportunity_id opportunity string
opportunity_stage opportunity string
partner_id opportunity string
snapshot_date opportunity date
Example SQL (Postgres)
SELECT (CAST((SELECT COUNT(opportunity_id) FROM opportunity WHERE snapshot_date = :period_end AND ((partner_id IS NOT NULL AND opportunity_stage = 'closed_won') AND (close_date >= :period_start AND close_date <= :period_end))) AS DOUBLE PRECISION) / NULLIF((SELECT COUNT(opportunity_id) FROM opportunity WHERE snapshot_date = :period_end AND ((partner_id IS NOT NULL AND opportunity_stage IN ('closed_won', 'closed_lost')) AND (close_date >= :period_start AND close_date <= :period_end))), 0)) AS partner_win_rate

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

Try searching for:

↑↓navigate↵select