Employee turnover rate: formula, DAX and retention

How to calculate employee turnover, leavers divided by average headcount, voluntary against involuntary turnover, annualising monthly rates, first-year turnover, retention rate, the DAX on an employee table with hire and leave dates, and turnover by department.

Short answer: employee turnover rate = leavers in a period / average headcount in that period. With 24 leavers in a year and an average of 200 employees, annual turnover is 12%. Split voluntary (resignations) from involuntary (dismissals, end of contract) turnover; they have different causes. Track first-year turnover (leavers within 12 months of hire / hires) separately, because early leavers point to hiring and onboarding problems.

Replacing an employee costs recruiting, training and lost output. Turnover by team shows where that cost is concentrated.

How is it calculated?

DepartmentAverage headcountLeaversVoluntaryTurnoverVoluntary turnover
Sales5010820.0%16.0%
Operations909510.0%5.6%
Engineering40337.5%7.5%
Admin202110.0%5.0%
Company200241712.0%8.5%
2026 by department
0510152016Sales7.5Engineering5.6Operations5Admin
Voluntary turnover by department (%)

What is the DAX?

An Employees table with one row per employment: Employee ID, Department, Hire Date, Leave Date (blank while employed), Leave Type (Voluntary or Involuntary). The dates are not related to the Date table; measures read the period:

Headcount on Date =
VAR D = MAX ( 'Date'[Date] )
RETURN
    COUNTROWS (
        FILTER ( Employees, Employees[Hire Date] <= D && ( ISBLANK ( Employees[Leave Date] ) || Employees[Leave Date] > D ) )
    )

Average Headcount =
AVERAGEX ( VALUES ( 'Date'[Year Month] ), CALCULATE ( [Headcount on Date] ) )

Leavers =
VAR PStart = MIN ( 'Date'[Date] )
VAR PEnd = MAX ( 'Date'[Date] )
RETURN
    COUNTROWS ( FILTER ( Employees, Employees[Leave Date] >= PStart && Employees[Leave Date] <= PEnd ) )

Voluntary Leavers = CALCULATE ( [Leavers], Employees[Leave Type] = "Voluntary" )

Turnover Rate = DIVIDE ( [Leavers], [Average Headcount] )
Voluntary Turnover = DIVIDE ( [Voluntary Leavers], [Average Headcount] )

Retention Rate = 1 - [Turnover Rate]

Average Headcount averages each month's end headcount. For a single month, annualise with 1 - POWER ( 1 - [Turnover Rate], 12 ), or simply × 12 for rough comparisons; say which.

What is first-year turnover?

First Year Leavers =
VAR PStart = MIN ( 'Date'[Date] )
VAR PEnd = MAX ( 'Date'[Date] )
RETURN
    COUNTROWS (
        FILTER (
            Employees,
            Employees[Hire Date] >= PStart && Employees[Hire Date] <= PEnd
                && NOT ISBLANK ( Employees[Leave Date] )
                && Employees[Leave Date] - Employees[Hire Date] < 365
        )
    )

Hires =
VAR PStart = MIN ( 'Date'[Date] )
VAR PEnd = MAX ( 'Date'[Date] )
RETURN COUNTROWS ( FILTER ( Employees, Employees[Hire Date] >= PStart && Employees[Hire Date] <= PEnd ) )

First Year Turnover = DIVIDE ( [First Year Leavers], [Hires] )

This counts by hire cohort: of those hired in 2025, how many left within a year. Cohorts less than a year old are not complete yet.

What goes wrong?

  • Dividing by headcount at the end. Growth inflates the base; use the average.
  • Counting transfers as leavers. Internal moves are not turnover; keep them as a separate event.
  • Mixing temporary contracts. Planned contract ends inflate involuntary turnover; report them apart.
  • Small teams. One leaver in a team of five is 20%; show counts, and hide teams under a minimum size for privacy.

Where can you check this?

Where do you start?

Load hire and leave dates with leave type, and show voluntary turnover by department with the leaver counts. Protect the page with row-level security so managers see their own teams.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.