Metrics: cohorts show each month's dollars beside the percentage

Each cohort cell now gives what the same customers pay that month, in
dollars, under the share of their starting MRR. The cohorts CSV adds
month_N_mrr columns after the month_N_pct ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 12:58:38 -07:00
co-authored by Claude Opus 5.5
parent 06b17b9eab
commit ea94324c3b
4 changed files with 22 additions and 5 deletions
+2 -2
View File
@@ -62,10 +62,10 @@
{{if $d.Cohorts}}
<h2>Cohorts</h2>
<p class="help">Customers by the month they first paid, and the share of their first month's MRR they pay each month after: above 100% means they grew.</p>
<p class="help">Customers by the month they first paid, and what those same customers pay each month after: the share of their starting MRR (above 100% means they grew), and below it the dollars.</p>
<div class="table-wrap"><table class="list compact cohorts">
<thead><tr><th>First paid</th><th class="num">Customers</th><th class="num">Starting MRR</th>{{range $i, $_ := $d.Span}}<th class="num">{{$i}}</th>{{end}}</tr></thead>
<tbody>{{range $d.Cohorts}}<tr><td>{{.Month}}</td><td class="num">{{.Customers}}</td><td class="num">{{usd .Start}}</td>{{range .Retained}}<td class="num">{{if ge . 0.0}}{{pct .}}{{end}}</td>{{end}}</tr>{{end}}</tbody>
<tbody>{{range $d.Cohorts}}<tr><td>{{.Month}}</td><td class="num">{{.Customers}}</td><td class="num">{{usd .Start}}</td>{{$co := .}}{{range $k, $r := .Retained}}<td class="num">{{if ge $r 0.0}}{{pct $r}}<br><span class="muted small">{{usd (index $co.MRR $k)}}</span>{{end}}</td>{{end}}</tr>{{end}}</tbody>
</table></div>
<p class="small"><a href="/metrics/export/nrr-cohorts.csv">Download as CSV</a> (every cohort, 24 months)</p>
{{end}}