← Back to Projects

Customer Retention & Churn Data Pipeline

Shows who leaves a simulated fintech app and when, separating users who close their accounts from those who quietly go silent. A tested pipeline feeds a Tableau dashboard.

Tableau dashboard: 10.4% overall churn across 500 users, churn ratio by signup cohort from 29% in the earliest months to 0% in the latest, and churn by age group (45-54 highest at 15.8%), acquisition channel (Paid Social highest at 12.9%) and account type.

The KPI dashboard, built on the pipeline's dbt marts. Open it live on Tableau Public.

The Question

A round-up investing app (modelled on products like Acorns) with Banking and Investing accounts wants to know three things: who is churning and when, where users get stuck in the app, and which product experiments the data supports.

To answer that the way an analytics team would, I built the whole stack: simulated users and behavior, a warehouse, tested transformations, a KPI dashboard, and product analytics.

What I Built

Python simulation → DuckDB → dbt → Tableau + Amplitude, run end to end with one command.

  • Realistic data, not random rows. 500 users over 12 months (May 2025 to April 2026), with transactions and app events. Lifespans follow a Weibull survival model, so churn emerges from behavior instead of a fixed rate.
  • A warehouse with tested models. Raw CSVs load into DuckDB. dbt cleans them into staging views and builds marts for BI, guarded by 20 schema and custom tests (keys, relationships, and churn logic).
  • A churn flag that tells two kinds of leaving apart. Every user is Active, Silent (no transaction in 90 days), or Explicit (fired a cancel event). The split matters: the two groups need different fixes.
  • Two serving layers. Marts export to Tableau Public for KPIs, and events stream to Amplitude for funnels and retention cohorts.

What the Data Showed

  • 10.4% overall churn: 52 of 500 users lost.
  • Earlier signup cohorts churned most (29-30%), since they had the longest exposure.
  • Ages 45-54 are the highest-risk group at 15.8% churn; 55+ is the most retained at 2.4%.
  • Acquisition channel matters: Paid Social users churn at 12.9%, App Store users at 6.4%.
  • The deposit step is the bottleneck. Only about 11% of users reach a deposit, and the drop is nearly identical across account types, which points to friction in the flow rather than a lack of intent.
  • Users with both products withdraw far less (22.1%) than Banking-only users (35.2%): they treat the app as an investment, not a checking account.

Average events per user by month for Active, Silent and Explicit users. Explicit and Silent churners are more active than retained users for the first six months, then drop sharply between January and February 2026; Explicit falls to zero while Active users keep rising.

Churners look healthy until they don't. For the first six months, both churn groups are more active than retained users. Then, between January and February 2026, their engagement falls off a cliff. Silent churners fade over several months, which leaves a window to win them back. Retained users, meanwhile, double their logins from 1.5 to over 3.6 a month.

What I'd Test Next

ExperimentProblem it targetsVersion B
One-tap deposit89% of users leave before depositingA button prefilled with the user's usual deposit amount
Spare change, explainedBoth-product users churn most (11.5%) despite rarely withdrawingA dashboard module projecting what their round-ups grow into
"We miss you" nudgeSilent churners fade out slowlyA personalized push after 14 days without opening the app

Alongside the experiments: shift acquisition spend from Paid Social toward App Store, add a one-question exit survey for explicit cancellations, and give the 45-54 group onboarding that shows long-term value early.

The full write-up walks through every funnel and cohort chart.

Scope & Tech Stack

All users, transactions, and events are synthetic. The point is the pipeline and the analysis method, not claims about a real company's customers.

Two free-tier limits shaped the build:

  • Tableau Public can't connect live to a database, so a script exports the dbt marts to CSV. In a production warehouse, Tableau would query the marts directly and that step would disappear.
  • Amplitude's free tier only keeps 365 days of events, so the simulation is anchored to an end date that keeps every event inside that window.

Tech stack: Python (pandas, NumPy), DuckDB, dbt (dbt-core, dbt-duckdb), Tableau Public, Amplitude.