GASP

Projects per Consultant

Projects per Consultant: Average projects completed per consultant in the period.

Formula

Projects per Consultant = Completed projects / Consultant headcount

Computable definition

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

count_distinct(field.project_id where in_period(field.project_completion_date)) / count_distinct(field.consultant_id where in_period(field.project_completion_date))

Unit: ratio

Data requirements

Grain: Per event · Frequency: Per milestone · Aggregation: event · Staged: no · Main source: PSA.

Field Dataset Type
consultant_id project string
project_completion_date project date
project_id project string
snapshot_date project date
Example SQL (Postgres)
SELECT (CAST((SELECT COUNT(DISTINCT project_id) FROM project WHERE snapshot_date = :period_end AND (project_completion_date >= :period_start AND project_completion_date <= :period_end)) AS DOUBLE PRECISION) / NULLIF((SELECT COUNT(DISTINCT consultant_id) FROM project WHERE snapshot_date = :period_end AND (project_completion_date >= :period_start AND project_completion_date <= :period_end)), 0)) AS projects_per_consultant

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

Try searching for:

↑↓navigate↵select