Marketplace Revenue
Marketplace Revenue: Revenue transacted through marketplace (AWS, Azure, etc.).
Formula
Marketplace Revenue = Sum of marketplace transactions 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.channel = 'marketplace' and field.opportunity_stage = 'closed_won' and in_period(field.close_date)) Unit: currency
Notes: Closed-won opportunities transacted through a cloud marketplace listing (AWS, Azure and similar), identified by channel marketplace.
Data requirements
Grain: Per event, aggregate monthly · Frequency: Monthly · Aggregation: aggregate (month) · Staged: no · Main source: CRM.
| Field | Dataset | Type |
|---|---|---|
channel | opportunity | string |
close_date | opportunity | date |
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 ((channel = 'marketplace' AND opportunity_stage = 'closed_won') AND (close_date >= :period_start AND close_date <= :period_end))) AS marketplace_revenue From an agent: with the GASP MCP server, call
lookup_metric({ "name": "Marketplace Revenue" }) or generate_query({ "metric": "Marketplace Revenue", "adapter": "<your adapter JSON>" }).