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>