Metrics: the first month counted is labelled as the existing customers

With a "Count from" month set, that month's cohort is everyone already
paying then, not only those new that month. Both cohort tables now say
"existing customers" under it, the help text explains, and both cohort
CSVs add an existing_customers column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 13:06:04 -07:00
co-authored by Claude Opus 5.5
parent a49d49713d
commit e320a64166
6 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
</nav>
<div class="table-wrap"><table class="list compact cohorts">
<thead><tr><th>First paid</th><th class="num">Customers</th>{{range $i, $_ := .Span}}<th class="num">{{$i}}</th>{{end}}</tr></thead>
<tbody>{{range .Cohorts}}<tr><td>{{.Month}}</td><td class="num">{{.Customers}}</td>
<tbody>{{range .Cohorts}}<tr><td>{{.Month}}{{if .Existing}} <span class="muted small">existing customers</span>{{end}}</td><td class="num">{{.Customers}}</td>
{{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>
+2 -2
View File
@@ -62,11 +62,11 @@
{{if $d.Cohorts}}
<h2>Cohorts</h2>
<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>
<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. The first month counted holds the existing customers: everyone already paying then, not only those new that month.</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>
{{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="pct"><td rowspan="2">{{.Month}}{{if .Existing}}<br><span class="muted small">existing customers</span>{{end}}</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>