Calculate annual attrition with a defined denominator
Hands-on hr case: load the downloadable CSV tables, perform the actions, inspect the full-data result and reconcile it. Includes a paired Desktop procedure.
Business use case
Your role: People reporting analyst
Leadership requests annual attrition, but teams use inconsistent headcount denominators.
The decision you support
Use the stated average-opening/closing denominator and show its components.
What you will deliver
20 leavers, opening 208, closing 248 and 8.7719% attrition under this definition.
Before you start
- Complete the linked foundation tutorial first.
- Read the case grain, currency, date convention and dictionary before importing.
- Use the exact scope/year/region/cutoff named in the tasks; preview pagination does not limit calculation rows.
Datasets and case evidence
All records are synthetic. Preserve the source files and use the case definitions when checking results.
Download Hr case ZIP| Input | Rows | Why you need it |
|---|---|---|
| Employees.csv | 302 | Synthetic employment start/end events and attributes. |
| MonthlyHeadcount.csv | 2,818 | Active employee-month snapshot rows. |
| SecurityMapping.csv | 4 | Fictional identities mapped to permitted regions. |
| ExpectedResults.csv | 6 | Answer sheet for checking your independently calculated result. |
Acceptance checklist
- 20 leavers, opening 208, closing 248 and 8.7719% attrition under this definition.
- Every task check passes using the context and expected values stated in its instructions.
- Save the result, one incorrect attempt with its explanation, and the steps needed to reproduce the correction.
Try it independently
After reproducing the answer, change one period, filter or supported assumption. Explain the result and document which acceptance values should change.
Browser simulation of the listed operations; repeat the paired walkthrough in Power BI Desktop. Service, gateway and identity behavior require separate real-environment checks.
What you'll do
- Prepare a complete calendar
- Create the leavers measure
- Run leavers in the required context
- Create the opening measure
- Create the closing measure
- Create the attrition measure
- Run attrition in the required context
- Reconcile the recorded result
Lab tasks
- 1 Import and inspect the case tables
- 2 Prepare a complete calendar
- 3 Create the leavers measure
- 4 Run leavers in the required context
- 5 Create the opening measure
- 6 Create the closing measure
- 7 Create the attrition measure
- 8 Run attrition in the required context
- 9 Reconcile the recorded result