Case study, people analytics
Workforce Attrition Review
The brief I set myself: you are the HR lead of a ~200-person company. Why are people leaving, what is it costing, and what should you do first?
employees, 2006 to April 2017, from a public HR dataset
months where my rebuilt headcount matches the source
dashboard tabs, from executive summary to data notes
Live dashboard
Use the filters above the charts to drill in. It is read-only, so nothing you click changes the data.
Approach
The way I build people data at work, in three steps.
KPIs first
Headcount, attrition, regrettable and early exits, 12-month retention and cost of attrition, written down before any chart, so every tab uses the same definition.
One source of truth
Three SQL models fix labels, classify exits and flag a conflicting record. The rebuilt headcount matches the source's own table at month end in every month.
Lead with the cost
An executive summary opens with the cost and four findings. Group sizes on every rate, rates hidden below 20 people, managers anonymised.
Findings
At a 30% replacement-cost assumption, averaged over 2011 to 2016.
What attrition costsAbout 2% of payroll
101 people left in six years; each exit means recruiting, onboarding and lost output.
Production drives it81 of 101 exits
Bringing Production down to the rest of the company's rate is worth about $84k a year.
Early exitsLeft within the first year
Recruiting spend that never pays back; cutting it by a quarter saves about $22k a year.
The 2011 hiring waveStill employed after 3 years
Against 82 to 89% for later cohorts: fast hiring brought fast leaving.
What I would recommend
- Production retention reviewStay interviews, shift patterns and pay versus market for technician roles, targeting the rest-of-company rate.
- Structured onboarding30, 60 and 90-day check-ins, with 12-month retention tracked by hiring cohort.
- Manager supportStart with the three teams that lost more than half of everyone they managed.
- Data hygieneAdopt end-of-month headcount as the official definition and block conflicting records at entry.
A separate public sample (IBM HR Analytics, 1,470 employees) shows the risk drivers: people working overtime were 2.9 times as likely to leave (95% confidence interval 2.3 to 3.7).
Data and caveats
Built with SQL, Metabase and PostgreSQL on Azure. All data is public sample data about fictional people; no employer's data is used. Cost figures depend on the replacement-cost assumption, which viewers can change on the dashboard. Findings are associations, not proof of cause.
Want the walkthrough?
I'm happy to talk through the SQL, the definitions and the trade-offs behind any chart.