Skip to content

M-elmojtaba-code/HR-Employee-Attrition-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HR Analytics: Employee Attrition Analysis

📊 Dashboard Overview

hr_overview

This dashboard provides a general overview of key HR metrics, including total employees, attrition rate, average salary, and workforce distribution.

The analysis was conducted using SQL for data cleaning and transformation and Power BI for interactive data visualization.

📌 Project Overview

Employee attrition is a critical challenge that affects organizational performance, productivity, and cost.

This project explores workforce data to understand patterns behind employee turnover and provide actionable insights for improving employee retention.


📊 Dataset Information

  • Total employees analyzed: 1,470
  • Attrition rate: 16%

The dataset includes:

  • Age  
  • Department  
  • Job Role  
  • Monthly Income  
  • Job Satisfaction  
  • Overtime Status  
  • Training Hours  
  • Performance Rating  

🛠 Tools & Technologies

  • SQL Server (Data Cleaning & Transformation)  
  • Power BI (Dashboard & Visualization)  
  • CSV Files (Data Source)

🧹 Data Cleaning & Transformation

Data cleaning was performed using SQL to ensure data quality and consistency.

Key steps included:

  • Imported data using SQL Server Import Flat File Wizard  
  • Merged multiple datasets using SQL JOIN  
  • Handled missing values  
  • Renamed columns for clarity  
  • Converted numerical values (0/1) into categorical values (Yes/No)  
  • Filtered dataset to ensure data quality  

The Final dataset contained 1470 clean and valid employee records.


🔍 Exploratory Data Analysis

Explortary Data Analysis (EDA) was conducted to understand the structure and patterns in the dataset before building the dashboard.

Key metrics analyzed:

  • Attrition distribution  
  • Employee distribution by department  
  • Job role analysis  
  • Overtime patterns  

📈 Dashboard & Visualizations

An intractive dashboard was bulit using Power BI to present insights clearly.

🔹 Attrition Analysis

attrition_analysis

This section focuses on employee atrrition patterns across departments, job roles, and overtime status, helping identify areas with higher turnover.


🔹 Workforce Analysis

workforce_overview

This dashboard shows the distribution of employees across departments, job roles, and salary levels, providing insights into workforce structure.


🔹 Training & Performance

performance_train

This section highlights employee training hours and performance ratings, and explores their relationship with employee satisfaction and retention.


📊 Key Insights

  • Attrition is concentrated in specific job roles  
  • Research & Development has the highest attrition  
  • Overtime is associated with higher employee turnover  
  • Employees aged 29–31 show higher resignation trends  
  • Manager roles have the highest average salary  

💡 Recommendations

  • Improve career development in high-attrition roles  
  • Reduce excessive overtime  
  • Strengthen employee training programs  
  • Enhance employee engagement strategies  

🧠 Skills Demonstrated

  • SQL Data Cleaning  
  • SQL JOIN & Data Merging  
  • Data Transformation  
  • Exploratory Data Analysis  
  • Power BI Dashboard Design  
  • Analytical Thinking  

📁 Project Structure

HR-Employee-Attrition-Analysis │ ├── README.md ├── HR_Employee_Attrition_Report.pdf │ ├── sql │ └── data_cleaning_queries.sql │ ├── dashboard │ └── attrition_dashboard.pbix │ └── images ├── overview.png ├── attrition.png ├── workforce.png └── training.png


📬 Contact & Feedback

Author: Mohammed Elmojtaba  

I’m currently open to entry-level data analyst opportunities.

If you have any feedback, questions, or collaboration opportunities, feel free to reach out:

Your feedback is highly appreciated and will help me continue improving my skills in data analytics.

About

A data analytics project focused on analyzing employee attrition using SQL and Power BI to uncover workforce patterns and support data-driven HR decisions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages