Initializing playground…
← Back to examples

💳 Subscription Revenue Waterfall

Scenario: A SaaS finance team needs to reconcile monthly invoices, account metadata, expansion, contraction, churn, and cohort retention into one board-ready revenue view.

Skills you'll use: merge, derived KPI columns, account snapshots, groupby().agg(), cohort calculations, pivotTableFull, and ranked retention tables.

1 · Join invoices to account metadata

Combine billing facts with customer segmentation, then summarize current-month MRR by segment.

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

2 · Build the monthly MRR movement waterfall

Compare each account to its previous snapshot and classify revenue movement.

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

3 · Turn monthly activity into a retention matrix

Measure how much of each signup cohort remains active as it ages.

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent