Marketing Influenced Pipeline/Revenue: Pipeline or revenue where marketing touched the deal at any point (multi-touch attribution).
Formula
Marketing Influenced = Pipeline/Revenue where any 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_influenced = true and field.opportunity_stage not in ('closed_won', 'closed_lost')) Unit: currency
- Revenue variant
sum(field.opportunity_amount where field.marketing_influenced = true and field.opportunity_stage = 'closed_won' and in_period(field.close_date))
Notes: Multi-touch attribution: any marketing touch. Main formula is pipeline, the revenue variant covers closed won.
Data requirements
Grain: Daily snapshot · Frequency: Daily · Aggregation: snapshot (day) · Staged: no · Main source: CRM.
| Field | Dataset | Type |
|---|---|---|
marketing_influenced | opportunity | boolean |
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_influenced = TRUE AND opportunity_stage NOT IN ('closed_won', 'closed_lost'))) AS marketing_influenced_pipelinerevenue From an agent: with the GASP MCP server, call
lookup_metric({ "name": "Marketing Influenced Pipeline/Revenue" }) or generate_query({ "metric": "Marketing Influenced Pipeline/Revenue", "adapter": "<your adapter JSON>" }).