Workforce Analytics
How has our workforce changed in size, structure, location and pay over ten years?
- Scenario
- Workforce and HR reporting
- Audience
- HR director, leadership team and workforce planners
- Data
- Ten years of published Civil Service Statistics tables
- Tools
- Power BI, Power Query, DAX
The challenge
Large organisations often struggle to answer basic questions about their own workforce over time. Ten years of headcount, grade, location and pay sit in separate annual tables, each formatted a little differently. When the leadership team asks how the workforce has changed, someone spends a week rebuilding the same comparison by hand.
This project asks that question of a large, real, public workforce: how has it changed in size, structure, location and pay over ten years? The same model and report design would apply to an SME’s own HR data.
The data
The source is Civil Service Statistics, published each year by the Cabinet Office under the Open Government Licence. The annual tables cover headcount and full-time equivalent staff by department, responsibility level (grade), region, working pattern and characteristics such as sex and age band, along with median pay.
Like most published statistics, the tables are designed to be read rather than analysed:
- each year is a separate spreadsheet with merged headers and notes;
- department names and structures change as departments are merged, split or renamed;
- grade groupings and some definitions are revised between years;
- small numbers are suppressed and shown as symbols rather than values.
The approach
Model. A star schema with a workforce fact at year × department × grade × region grain, and dimensions for year, department (with a mapping to current departments), grade and region. Pay is a separate fact at the grain it is published.
Transformation. Power Query unpivots each year’s tables into a consistent long format. It maps historical department names to a current structure through a documented lookup, aligns grade groupings, and keeps suppressed values as blanks with a flag, never as zero.
Key measures. Headcount and FTE with change over one, five and ten years. Other measures cover grade mix (the share of staff at each level), the proportion of staff outside London, median pay by grade and region, and part-time working rates.
The dashboard
- Overview. Total headcount and FTE over ten years, with the main changes called out.
- Structure. A grade pyramid for any year, compared with ten years earlier.
- Location. Headcount by region and the shift away from London over time.
- Pay. Median pay by grade and region, in cash terms and against the earliest year.
- Departments. Growth and change by department, using the mapped current structure.
What it shows
The dashboard is designed to show how the size and shape of the workforce has changed, where staff are based, and how pay differs by grade and location across ten years.
[[UPDATE WITH REAL FINDINGS]]
Decisions it supports
For an organisation using its own HR data, the same report supports:
- workforce planning based on long-run trends, not one year’s snapshot;
- location strategy and the case for regional offices;
- checks on grade drift, where the mix moves upwards over time;
- pay comparisons by grade and region.
Data source and licence
- Licence
- Open Government Licence v3.0
- Attribution
- Contains public sector information licensed under the Open Government Licence v3.0.