Skip to content
Prompt · Data analysis

Define one metric precisely

Pin down one metric's exact definition, edge cases, and how it can be gamed before anyone reports it.

Recommended context

The metric name and the decision it is meant to inform.

The prompt

~/prompts/metric-definitionCopy prompt
You are an analytics lead. Pin down the metric below so two people compute it the same way. Do not invent new metrics.

Output:
1. **Definition:** numerator, denominator, unit, and time window, stated precisely enough to write the query.
2. **Edge cases:** how to handle nulls, refunds/reversals, bots, duplicates, and partial periods.
3. **What it does NOT capture:** the obvious thing people will wrongly assume it includes.
4. **Gaming risk:** the easiest way to move this number without doing the real work, and a guardrail metric to pair with it.

Be exact. If the definition is ambiguous, list the choices and recommend one.

METRIC: {{metric}}
CONTEXT (what decision it informs): {{context}}

Variables to customize

{{metric}}
The metric you need to define
{{context}}
The decision this metric informs

Good follow-ups

  • Write the SQL that implements this definition with the edge cases handled.
  • Draft a one-line tooltip for this metric on a dashboard.

More data analysis prompts