A comprehensive HR Analytics solution built with Power BI to analyze employee attrition, workforce demographics, performance metrics, and organizational insights. This project helps HR professionals and management make data-driven decisions to improve employee retention and optimize workforce management.
This Power BI dashboard provides deep insights into human resources metrics, focusing on employee attrition patterns, demographic analysis, performance tracking, and satisfaction levels across the organization. The analytics enable HR teams to identify risk factors, understand employee behavior, and implement targeted retention strategies.
- π Monitor Attrition Rate - Track and analyze employee turnover (16.08% overall attrition)
- π₯ Workforce Demographics - Understand employee composition by age, gender, department, and role
- πΌ Performance Analysis - Evaluate performance ratings and identify high performers
- π Employee Satisfaction - Measure job satisfaction, work-life balance, and environment satisfaction
- π° Compensation Insights - Analyze salary distribution and its impact on retention
- π― Identify Risk Factors - Pinpoint departments, roles, and segments with high attrition
- π Trend Analysis - Understand patterns in tenure, promotions, and career progression
HR-Analytics/
βββ HR_Analytics.pbix # Power BI dashboard with interactive visualizations
βββ HR_Analytics.csv # Employee dataset (1,480 records)
βββ README.md # Project documentation
- Total Employees: 1,480 records
- Total Attributes: 38 comprehensive HR metrics
- Overall Attrition Rate: 16.08% (238 employees left)
- Active Employees: 1,242 (83.92%)
EmpID- Unique employee identifierEmployeeNumber- Employee numberEmployeeCount- Count flag
Age- Employee age (18-60 years)AgeGroup- Age brackets (18-25, 26-35, 36-45, 46-55, 55+)Gender- Male (60.06%) / Female (39.94%)MaritalStatus- Married, Single, DivorcedDistanceFromHome- Commute distance in miles
Department- Research & Development (65.3%), Sales (30.4%), HR (4.3%)JobRole- 9 different roles (Sales Executive, Research Scientist, etc.)JobLevel- Career level (1-5)BusinessTravel- Travel frequency (Rarely, Frequently, Non-Travel)OverTime- Overtime work (Yes/No)
TotalWorkingYears- Total career experienceYearsAtCompany- Tenure at current companyYearsInCurrentRole- Time in current positionYearsSinceLastPromotion- Years since last promotionYearsWithCurrManager- Reporting relationship durationNumCompaniesWorked- Previous employers
Education- Education level (1-5 scale)EducationField- Degree field (Life Sciences, Medical, Marketing, Technical, HR, Other)
MonthlyIncome- Monthly salarySalarySlab- Salary brackets:- Upto 5k (50.9%)
- 5k-10k (30.0%)
- 10k-15k (10.1%)
- 15k+ (9.0%)
HourlyRate- Hourly pay rateDailyRate- Daily compensationMonthlyRate- Monthly ratePercentSalaryHike- Recent salary increase percentageStockOptionLevel- Stock options (0-3)
PerformanceRating- Performance score (3-4 scale)- Rating 3: 84.66%
- Rating 4: 15.34%
JobSatisfaction- Job satisfaction level (1-4)EnvironmentSatisfaction- Workplace satisfaction (1-4)RelationshipSatisfaction- Manager relationship satisfaction (1-4)WorkLifeBalance- Work-life balance rating (1-4)
JobInvolvement- Job involvement level (1-4)TrainingTimesLastYear- Training sessions attended
Attrition- Employee departure status (Yes/No)
- Total Attrition Rate: 16.08% (238 out of 1,480 employees)
- Active Workforce: 83.92% (1,242 employees)
| Department | Attrition Rate |
|---|---|
| Sales | 20.67% (Highest) |
| Human Resources | 19.05% |
| Research & Development | 13.75% (Lowest) |
| Job Role | Attrition Rate |
|---|---|
| Sales Representative | 39.29% |
| Laboratory Technician | 23.75% |
| Human Resources | 23.08% |
| Sales Executive | 17.63% |
| Research Scientist | 16.04% |
Critical Finding: Sales Representatives have the highest attrition rate at nearly 40%, indicating a need for immediate retention strategies in this role.
- 26-35 years: 41.28% (Largest segment)
- 36-45 years: 31.82%
- 46-55 years: 15.41%
- 18-25 years: 8.31%
- 55+ years: 3.18%
- Male: 60.06% (889 employees)
- Female: 39.94% (591 employees)
- Married: 45.88% (679 employees)
- Single: 31.96% (473 employees)
- Divorced: 22.16% (328 employees)
- Upto 5k: 50.88% (753 employees) - Entry to mid-level
- 5k-10k: 30.00% (444 employees) - Mid-level
- 10k-15k: 10.14% (150 employees) - Senior level
- 15k+: 8.99% (133 employees) - Executive level
Insight: Majority of employees (80.88%) earn below 10k monthly, suggesting opportunities for competitive compensation strategies.
- Travel Rarely: 70.41% (1,042 employees)
- Travel Frequently: 18.85% (279 employees)
- Non-Travel: 10.20% (151 employees)
- No Overtime: 71.76% (1,062 employees)
- Overtime: 28.24% (418 employees)
Finding: Over 28% of employees work overtime, which may correlate with work-life balance and attrition.
- Rating 3 (Good): 84.66% (1,253 employees)
- Rating 4 (Excellent): 15.34% (227 employees)
- Level 3 (Good): 60.74% (899 employees)
- Level 2 (Fair): 23.38% (346 employees)
- Level 4 (Excellent): 10.41% (154 employees)
- Level 1 (Poor): 5.47% (81 employees)
- Life Sciences: 41.01% (607 employees)
- Medical: 31.76% (470 employees)
- Marketing: 10.88% (161 employees)
- Technical Degree: 8.92% (132 employees)
- Other: 5.61% (83 employees)
- Human Resources: 1.82% (27 employees)
- Total Employee Count
- Attrition Rate (%)
- Average Age
- Average Monthly Income
- Average Years at Company
- Active vs Attrited Employees
- Attrition by Department (Bar Chart)
- Attrition by Job Role (Horizontal Bar)
- Attrition by Age Group (Column Chart)
- Attrition by Salary Slab (Stacked Bar)
- Attrition by Gender (Pie/Donut Chart)
- Attrition Trend by Tenure (Line Chart)
- Age Group Distribution (Histogram)
- Gender Distribution (Pie Chart)
- Marital Status Breakdown (Donut Chart)
- Department Headcount (Tree Map)
- Job Role Distribution (Stacked Column)
- Salary Distribution by Department (Box Plot)
- Salary Slab Analysis (Stacked Bar)
- Salary Hike Distribution (Histogram)
- Income vs Attrition (Scatter Plot)
- Performance Rating Distribution (Gauge)
- Job Satisfaction Levels (Stacked Bar)
- Work-Life Balance Scores (Column Chart)
- Environment Satisfaction (Heat Map)
- Years at Company Distribution (Area Chart)
- Years Since Last Promotion (Column Chart)
- Total Working Years Analysis (Line Chart)
- Tenure vs Attrition Correlation
Slicers & Filters:
- Department
- Job Role
- Age Group
- Gender
- Salary Slab
- Attrition Status
- Marital Status
- Overtime (Yes/No)
- Business Travel Frequency
Drill-Through Capabilities:
- Employee-level details
- Department deep dive
- Role-specific analysis
Cross-Filtering:
- Dynamic interaction across all visuals
- Multi-select filters for complex analysis
| Component | Technology |
|---|---|
| Data Source | CSV (1,480 records) |
| ETL & Cleaning | Power Query |
| Data Modeling | Power BI Data Model |
| Calculations | DAX (Data Analysis Expressions) |
| Visualization | Power BI Desktop |
| Analytics | Statistical Analysis, Correlation |
Based on the analysis, key recommendations include:
- Immediate intervention required
- Review compensation and incentive structure
- Improve career progression opportunities
- Enhance work-life balance initiatives
- Department-wide retention program
- Competitive salary benchmarking
- Professional development opportunities
- Mentorship programs
- Review salary competitiveness for lower slabs (50% earn <5k)
- Implement performance-based incentives
- Regular market salary surveys
- Transparent promotion criteria
- Reduce overtime requirements (28% currently work OT)
- Flexible work arrangements
- Wellness programs
- Mental health support
- Structured promotion timelines
- Skills development programs
- Clear career paths for each role
- Regular performance reviews
- Enhanced onboarding programs
- First-year check-ins
- Mentorship for new hires
- Clear expectations setting
- Power BI Desktop (latest version)
- Microsoft Excel (optional, for CSV viewing)
- Clone the Repository
git clone https://github.com/AdityaSingh7764/HR-Analytics.git
cd HR-Analytics- Open Power BI Dashboard
- Launch Power BI Desktop
- Open
HR_Analytics.pbix - Data source is embedded in the file
- Explore the Dashboard
- Navigate through different report pages
- Use slicers to filter data
- Hover over visuals for detailed tooltips
- Click on charts for cross-filtering
To refresh with new data:
- Open Power BI file
- Go to Home β Transform Data
- Update the CSV file path
- Click Close & Apply
- Save the updated report
// Total Employees
Total Employees = COUNT('HR_Analytics'[EmpID])
// Attrition Count
Attrition Count =
CALCULATE(
COUNT('HR_Analytics'[EmpID]),
'HR_Analytics'[Attrition] = "Yes"
)
// Attrition Rate
Attrition Rate =
DIVIDE(
[Attrition Count],
[Total Employees],
0
)
// Average Monthly Income
Avg Monthly Income = AVERAGE('HR_Analytics'[MonthlyIncome])
// Active Employees
Active Employees =
CALCULATE(
COUNT('HR_Analytics'[EmpID]),
'HR_Analytics'[Attrition] = "No"
)
// Attrition by Department
Dept Attrition Rate =
DIVIDE(
CALCULATE([Attrition Count]),
CALCULATE([Total Employees]),
0
)
// Average Tenure
Avg Tenure = AVERAGE('HR_Analytics'[YearsAtCompany])
// High Performer Count
High Performers =
CALCULATE(
COUNT('HR_Analytics'[EmpID]),
'HR_Analytics'[PerformanceRating] = 4
)
This dashboard is valuable for:
- β Monitor attrition trends
- β Identify retention risks
- β Plan recruitment strategies
- β Optimize compensation packages
- β Workforce planning
- β Budget allocation
- β Performance management
- β Strategic decision-making
- β Team composition analysis
- β Talent retention
- β Performance tracking
- β Resource planning
- β Predictive modeling
- β Trend analysis
- β Correlation studies
- β Benchmarking
- Predictive Analytics: Machine learning model to predict attrition risk
- Sentiment Analysis: Employee feedback text analysis
- Real-time Updates: Connect to live HR database
- Mobile Optimization: Power BI Mobile app configuration
- Advanced Segmentation: Clustering analysis for employee personas
- Exit Interview Integration: Qualitative data incorporation
- Benchmarking: Industry comparison metrics
- Automated Alerts: Email notifications for critical metrics
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch
- Make your enhancements
- Submit a pull request
Suggestions for improvement:
- Additional DAX measures
- New visualizations
- Enhanced data model
- Documentation improvements
Aditya Singh
- GitHub: @AdityaSingh7764
This project is available for educational and analytical purposes.
This project demonstrates:
- β HR analytics best practices
- β Power BI dashboard design
- β DAX calculations for HR metrics
- β Data visualization techniques
- β Attrition analysis methodologies
- β Business intelligence storytelling
- β Data-driven HR decision making
- Dataset: 1,480 employee records across 38 attributes
- Attrition Rate: 16.08% overall
- Critical Finding: Sales Representatives at 39.29% attrition
- Departments Analyzed: 3 (R&D, Sales, HR)
- Job Roles: 9 distinct positions
- Salary Slabs: 4 compensation tiers
- Age Groups: 5 demographic segments
- Interactive Slicers: 8+ filter options
β If you found this project helpful, please consider giving it a star!
Data-driven insights for human resources management and employee retention