Training Completion
Training Completion: Percentage of partners completing required training.
Formula
Training Completion = Partners completing training / Partners enrolled × 100 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.partner_id where field.training_completed = true) / count_distinct(field.partner_id) Unit: percent (the formula yields an unscaled ratio)
Notes: Denominator is partners enrolled in required training.
Data requirements
Grain: End-of-month snapshot · Frequency: Monthly · Aggregation: snapshot (month) · Staged: no · Main source: Partner Management.
| Field | Dataset | Type |
|---|---|---|
partner_id | partner | string |
snapshot_date | partner | date |
training_completed | partner | boolean |
Example SQL (Postgres)
SELECT (CAST((SELECT COUNT(DISTINCT partner_id) FROM partner WHERE snapshot_date = :period_end AND training_completed = TRUE) AS DOUBLE PRECISION) / NULLIF((SELECT COUNT(DISTINCT partner_id) FROM partner WHERE snapshot_date = :period_end), 0)) AS training_completion From an agent: with the GASP MCP server, call
lookup_metric({ "name": "Training Completion" }) or generate_query({ "metric": "Training Completion", "adapter": "<your adapter JSON>" }).