Stop 12 · Interactive Reports & StorytellingProjects · 1/1

Interactive HR Attrition Report

Part of the Power BI Roadmap

In short

HR teams in Indian IT and services companies watch attrition closely, because every leaver means hiring and training someone new. This project builds a report that shows who is leaving, from where and why, using everything from this phase.

A project building a multi-page HR report on employee attrition by department, age, tenure and other factors, with drill through, tooltips, bookmarks and navigation.

The jaadu, dressed as a bus conductor with a ticket bag, stands at a bus door counting small figures stepping off onto a stop.

Think of it like this

Counting passengers at bus stops

A Bengaluru bus conductor notes how many passengers get off at each stop. If half the riders leave at one stop every day, something is happening there: an office, a market, a college. An attrition report counts who gets off, and at which stop: department, age band, tenure, overtime.

Watch it happen

Report structure

Overview page
KPIs: Headcount, Leavers, Attrition %
Attrition by Department, Age Band, Tenure
Department Detail (drill through)
Department tooltip page

1/4The overview starts with headline KPIs for the selected period.

The big ideas

What you need to know

Rates, not counts

Sales may have more leavers simply because it's bigger. Compare attrition rates across departments.

Bands make patterns

Group age and tenure into bands like 0 to 2 years, 3 to 5 years, so patterns become visible.

Sensitive data

Employee data is personal. Hide names in shared views and use row-level security in the Service.

End with insight

Finish with a text box: where attrition is highest, what may be driving it and what to look into.

How it works

Project steps

  1. 1

    Get data

    Use the public IBM HR Analytics attrition dataset from Kaggle, or a similar anonymised employee table.

  2. 2

    Model and bands

    Add Age Band and Tenure Band columns and a Department dimension.

  3. 3

    Measures

    Headcount, Leavers, Attrition Rate %, Avg Tenure and Avg Monthly Income.

  4. 4

    Pages

    Overview, Department Detail drill-through page and a tooltip page.

  5. 5

    Interactivity

    Bookmarks for a chart and table toggle, a reset button, synced slicers and a mobile layout.

See it in code

Walk through the code

dax
1Headcount = COUNTROWS ( Employee )2 3Leavers =4CALCULATE ( COUNTROWS ( Employee ), Employee[Attrition] = "Yes" )5 6Attrition Rate % =7DIVIDE ( [Leavers], [Headcount] )8 9Avg Tenure (Years) =10AVERAGE ( Employee[YearsAtCompany] )11 12Tenure Band =13SWITCH (14    TRUE (),15    Employee[YearsAtCompany] <= 2, "0-2 yrs",16    Employee[YearsAtCompany] <= 5, "3-5 yrs",17    Employee[YearsAtCompany] <= 10, "6-10 yrs",18    "10+ yrs"19)

1/5Every employee row in the current filter context.

Core measures plus a Tenure Band calculated column in the Employee table.

Save yourself the pain

Common mistakes

Oops

Ranking departments by number of leavers.

Do this instead

Rank by Attrition Rate %. A large department always has more leavers.

Oops

Publishing a report with employee names visible to everyone.

Do this instead

Remove or hide personal fields and apply row-level security before sharing.

Your mission

Build the attrition report

~150 min

Quick check

Department A has 40 leavers out of 400. Department B has 15 out of 60. Which has higher attrition?

Go deeper

  1. 1Use a public HR attrition dataset from Kaggle.
  2. 2Include an overview page, a driver analysis page and an employee detail drill-through page.
  3. 3Record a short screen video walking through the interactivity for your portfolio.

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge