For SaaS RevOps
The board asks why MRR slowed.
You answer with the query that proves it.
Connect Stripe and your database. Every figure comes back with the SQL under it, the rows it threw out, and a straight sentence about what it cannot tell you.
Why did MRR growth slow last month?
- ·14 months of subscription rows found. The two before your Stripe migration use a different plan_id scheme, so they are excluded from the cohort split and the exclusion is stated in the output.
- ·47 duplicate invoice rows, same charge id, removed before summing.
- ·Nine accounts changed plan mid-month. Prorated to the day rather than counted in both tiers.
WITH m AS (
SELECT account_id,
strftime(period_start, '%Y-%m') AS month,
SUM(amount) / 100.0 AS mrr
FROM subscription_items
WHERE status = 'active'
GROUP BY 1, 2
), d AS (
SELECT month, account_id, mrr,
LAG(mrr) OVER (PARTITION BY account_id ORDER BY month) AS prev
FROM m
)
SELECT month,
SUM(CASE WHEN prev IS NULL THEN mrr ELSE 0 END) AS new_mrr,
SUM(CASE WHEN mrr > prev THEN mrr - prev ELSE 0 END) AS expansion,
SUM(CASE WHEN mrr < prev AND mrr > 0 THEN mrr - prev ELSE 0 END) AS contraction,
SUM(CASE WHEN mrr = 0 THEN -prev ELSE 0 END) AS churned
FROM d
GROUP BY month
ORDER BY month DESC
LIMIT 12;New +4.2L, expansion +3.1L, contraction -0.9L, churn -5.6L. Net +0.8L, against +3.4L the month before.
Recomputed from the raw invoice lines without the window function; both agree to the rupee
It is churn, not acquisition. Three accounts over 1L each left inside the same week and all three were on the legacy annual plan. Start with that plan, not with the ads budget.
What this answer cannot tell you: Why those three left. The rows show when and how much, never the reason. That is a call with the customer, and this will not invent one for you.
What it does to the numbers, without being asked
Each of these is a mistake a quarterly deck usually makes.
MRR, split four ways rather than one
New, expansion, contraction and churn as separate series, so a flat month that is really strong acquisition against heavy churn stops looking like a quiet month.
Retention by cohort, not blended
A curve per signup month. Blended retention improves whenever you grow, which is how a churn problem hides inside a good quarter for two more quarters.
Net revenue retention with the upsell pulled out
Expansion and gross churn reported separately before they net off. A healthy NDR built on a handful of big upsells covering a leaking base is a different company from one with a sticky base.
CAC payback by channel, once ads are connected
Sales and marketing cost against the new MRR it produced, in months. Attributed per channel when Meta and Google Ads are joined in, blended when they are not, and it says which it did.
At-risk accounts, ranked, with the reason
A model scores accounts on usage and billing history and reports which fields drove each score. A list without the driver is a list nobody acts on.
The same answer every Monday, unprompted
Pin the board figures once. It recomputes on fresh data, flags what moved more than your threshold, and sends the page rather than waiting to be asked.
Things people actually type into it
And what comes back, which is the half a question list usually leaves out.
“Which cohorts are below 15% at month 6?”
Cohort table, the failing rows marked, and the query
“Stage conversion this quarter against last”
Side-by-side funnel with the drop-offs over 10% called out
“Is our CAC payback getting worse or is it mix?”
Payback by channel over time, plus which channel's share moved
“If churn held flat, what would MRR be in March?”
A projection with a range, or a refusal if the fit is too weak to project from
“Why is net retention down when upsells are up?”
Contribution split showing which segment accounts for the gap
Reads Stripe, HubSpot, Postgres, MySQL, BigQuery, Snowflake, Redshift, Google Sheets, Meta Ads, Google Ads and GA4. What each one pulls.
Stop rebuilding the same deck every Monday.
The demo runs on sample subscription data, so you can read a movement waterfall and its query before connecting anything.