On-Time Delivery
On-Time Delivery: Percentage of projects delivered by committed date.
Formula
On-Time Delivery = Projects on time / Total projects completed × 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.project_id where in_period(field.project_completion_date) and field.project_completion_date <= field.target_date) / count_distinct(field.project_id where in_period(field.project_completion_date)) Unit: percent (the formula yields an unscaled ratio)
Data requirements
Grain: Per event · Frequency: Per milestone · Aggregation: event · Staged: no · Main source: PSA.
| Field | Dataset | Type |
|---|---|---|
project_completion_date | project | date |
project_id | project | string |
snapshot_date | project | date |
target_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) AND project_completion_date <= target_date)) AS DOUBLE PRECISION) / NULLIF((SELECT COUNT(DISTINCT project_id) FROM project WHERE snapshot_date = :period_end AND (project_completion_date >= :period_start AND project_completion_date <= :period_end)), 0)) AS on_time_delivery From an agent: with the GASP MCP server, call
lookup_metric({ "name": "On-Time Delivery" }) or generate_query({ "metric": "On-Time Delivery", "adapter": "<your adapter JSON>" }).