A funnel rate requires a declared start population, ordered steps, completion deadline, and rules for repeated attempts. The numerator must be a subset of the denominator. Ask the model to inspect whether a table satisfies those invariants, then compute the rate outside free text. A completion event before the chosen start, or a completion from an excluded account, cannot be included merely because its name matches. Choose whether the unit is user, session, or attempt and keep it constant through every step.
Analytics prompts: enforce funnel eligibility and event order
Operational case
For Meridian's 4,700 eligible unique starts, 2,820 users complete within 24 hours. The rate is 2,820/4,700, or 60%. A second signup attempt by the same person stays under the documented user-level rule rather than creating another person. A completion recorded after 24 hours is excluded from this rate but may appear in a separately named longer-window measure. The model's summary must carry the window and unit beside 60%.
Denominator: 4,700 eligible unique starting users
Numerator: 2,820 of those users complete within 24 hours
Rate: 2,820 / 4,700 = 60%
Invariant: completion users are a subset of starting users
Repeat attempt: handled by user-level rulePerformance and review cost
A hash join of start and completion records by user ID is O(N) expected time and O(U) memory for N events and U users. An ordered multi-step funnel may need O(N log N) sorting. The prompt's word count is negligible compared with the cost of getting event order and eligibility wrong; test those invariants before generating a polished chart.
Common Mistakes
- Do not count completions from users outside the start set.
- Do not switch from users to attempts mid-funnel.
- Do not omit the 24-hour completion window.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- Aggregation prompts: pin the denominator and recompute the rate
- Numeric prompts: let code calculate and the model explain
- Analytics prompts: define the metric and event contract
- Analytics prompts: reconcile identities, duplicates, and late arrivals
- Analytics prompts: pin cohort windows and time zones
- Analytics prompts: review read-only queries and totals
- Analytics prompts: explain segment gaps without inventing causes
- Analytics prompts: turn a metric packet into a bounded decision
- Project: reconcile Meridian's signup funnel
- Product analytics prompt decisions
