Metrics: every cohort over every month, percentages and dollars aligned
Both cohort tables (MRR retention on Metrics, revenue per customer on CLV) and their CSVs now show every cohort, each followed to the latest month, instead of the last 12 or 18 for 12 or 24 months. Each MRR cohort is now two rows, the share of starting MRR and the dollars under it, so the numbers line up across months; the month, customers and starting MRR span both rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,6 @@
|
||||
{{if $d.Profit}}{{range .Margin}}<td class="num">{{if .Known}}{{usd .V}}{{end}}</td>{{end}}{{else}}{{range .PerCustomer}}<td class="num">{{if .Known}}{{usd .V}}{{end}}</td>{{end}}{{end}}
|
||||
</tr>{{end}}</tbody>
|
||||
</table></div>
|
||||
<p class="small"><a href="/metrics/export/cohort-revenue.csv">Download as CSV</a> (every cohort, 24 months)</p>
|
||||
<p class="small"><a href="/metrics/export/cohort-revenue.csv">Download as CSV</a> (every cohort, every month)</p>
|
||||
{{end}}
|
||||
{{end}}{{end}}
|
||||
|
||||
@@ -65,9 +65,12 @@
|
||||
<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>{{$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>
|
||||
{{range $d.Cohorts}}<tbody class="cohort">
|
||||
<tr class="pct"><td rowspan="2">{{.Month}}</td><td class="num" rowspan="2">{{.Customers}}</td><td class="num" rowspan="2">{{usd .Start}}</td>{{range .Retained}}<td class="num">{{if ge . 0.0}}{{pct .}}{{end}}</td>{{end}}</tr>
|
||||
<tr class="usd">{{range .MRR}}<td class="num">{{if ge . 0.0}}{{usd .}}{{end}}</td>{{end}}</tr>
|
||||
</tbody>{{end}}
|
||||
</table></div>
|
||||
<p class="small"><a href="/metrics/export/nrr-cohorts.csv">Download as CSV</a> (every cohort, 24 months)</p>
|
||||
<p class="small"><a href="/metrics/export/nrr-cohorts.csv">Download as CSV</a> (every cohort, every month)</p>
|
||||
{{end}}
|
||||
|
||||
<form method="post" action="/metrics/start" class="row small">
|
||||
|
||||
Reference in New Issue
Block a user