Marketing Sourced Pipeline: Pipeline value attributed to marketing efforts (first-touch attribution).
Formula
Marketing Sourced Pipeline = Sum of opportunity value where first touch = marketing 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.marketing_source = 'marketing' and field.opportunity_stage not in ('closed_won', 'closed_lost')) Unit: currency
Notes: First-touch attribution.
Data requirements
Grain: Daily snapshot · Frequency: Daily · Aggregation: snapshot (day) · Staged: no · Main source: CRM.
| Field | Dataset | Type |
|---|---|---|
marketing_source | opportunity | string |
opportunity_amount | opportunity | decimal |
opportunity_stage | opportunity | string |
snapshot_date | opportunity | date |
Example SQL (Postgres)
SELECT (SELECT COALESCE(SUM(opportunity_amount), 0) FROM opportunity WHERE snapshot_date = :period_end AND (marketing_source = 'marketing' AND opportunity_stage NOT IN ('closed_won', 'closed_lost'))) AS marketing_sourced_pipeline Access: recommended
sensitivity tier confidential,
access scope department-scoped.
Guidance your policy engine enforces.
From an agent: with the GASP MCP server, call
lookup_metric({ "name": "Marketing Sourced Pipeline" }) or generate_query({ "metric": "Marketing Sourced Pipeline", "adapter": "<your adapter JSON>" }).
What It Tells You
Marketing's contribution to sales pipeline.
Related Metrics
Connected in the GASP relationship graph.
Downstream: what this drives
- Marketing Sourced Pipeline measures Opportunity (Entity)