๐ Data Analyst Project Series โ Part 2
HR Analytics Dashboard Project
๐ฏ Project Goal
The goal of this project is to analyze employee data and create an HR Analytics Dashboard that helps companies understand:
โข Employee attrition
โข Employee performance
โข Department-wise analysis
โข Salary trends
โข Employee satisfaction
โข Hiring and retention insights
This is one of the most popular real-world Data Analyst projects because every company tracks employee performance and retention.
๐ STEP 1: Choose an HR Dataset
Recommended Datasets
Search on Kaggle:
โข HR Analytics Dataset
โข Employee Attrition Dataset
โข IBM HR Analytics Dataset
๐ STEP 2: Understand the Dataset
Common Columns in HR Data
Column Name: Employee ID
Meaning: Unique employee number
Column Name: Age
Meaning: Employee age
Column Name: Gender
Meaning: Male/Female
Column Name: Department
Meaning: Department name
Column Name: Job Role
Meaning: Employee role
Column Name: Salary
Meaning: Employee salary
Column Name: Attrition
Meaning: Employee left or not
Column Name: Years at Company
Meaning: Work experience
Column Name: Satisfaction Score
Meaning: Employee satisfaction
Column Name: Performance Rating
Meaning: Employee performance
๐งน STEP 3: Data Cleaning
HR data usually contains:
โข Missing values
โข Duplicate employees
โข Incorrect salary formats
โข Inconsistent department names
โ Cleaning Tasks
Remove Duplicate Employees
Example:
Same Employee ID appearing multiple times.
Handle Missing Values
Check:
โข Missing salary
โข Missing department
โข Empty performance ratings
Standardize Text
Example:
โข โHuman Resourcesโ
โข โHRโ
โข โhuman resourcesโ
Convert all into one standard format.
Correct Data Types
Examples:
โข Salary โ Number
โข Joining Date โ Date
โข Attrition โ Yes/No
๐ STEP 4: Define HR KPIs
KPIs are very important in HR Analytics.
Essential KPIs
โ Total Employees
COUNT(Employee_ID)
โ Attrition Count
COUNT(CASE WHEN Attrition = 'Yes' THEN 1 END)
โ Attrition Rate
(Employees_Left / Total_Employees) * 100
Purpose:
Measures employee turnover.
โ Average Salary
AVG(Salary)
โ Average Satisfaction Score
AVG(Satisfaction_Score)
๐ STEP 5: HR Data Analysis Using SQL
Now start analyzing the HR data.
๐ SQL Query Examples
1. Attrition by Department
SELECT Department,
COUNT(*) AS Employees_Left
FROM HR_Data
WHERE Attrition = 'Yes'
GROUP BY Department
ORDER BY Employees_Left DESC;
2. Average Salary by Job Role
SELECT Job_Role,
AVG(Salary) AS Avg_Salary
FROM HR_Data
GROUP BY Job_Role
ORDER BY Avg_Salary DESC;
3. Employee Count by Gender
SELECT Gender,
COUNT(*) AS Employee_Count
FROM HR_Data
GROUP BY Gender;
4. Top Departments with Highest Satisfaction
SELECT Department,
AVG(Satisfaction_Score) AS Avg_Satisfaction
FROM HR_Data
GROUP BY Department
ORDER BY Avg_Satisfaction DESC;
๐ STEP 6: Build HR Dashboard
Use:
โข Power BI
โข Tableau
๐จ Dashboard Layout
Section 1: KPI Cards
Display:
โข Total Employees
โข Attrition Rate
โข Average Salary
โข Satisfaction Score
These should appear at the TOP.
Section 2: Charts
โ Bar Chart
Use for:
โข Attrition by Department
โ Pie Chart
Use for:
โข Gender Distribution
โ Line Chart
Use for:
โข Hiring Trend Over Time
โ Heatmap
Use for:
โข Performance vs Satisfaction
โ Tree Map
Use for:
โข Department-wise Employee Distribution
๐ STEP 7: Add Dashboard Filters
Add slicers for:
โ Department
โ Gender
โ Job Role
โ Experience Level
โ Attrition Status
This makes the dashboard interactive.
๐จ STEP 8: Improve Dashboard Design
Design Tips
โ Use HR-friendly colors
โ Avoid too many visuals
โ Keep important KPIs visible
โ Add icons where necessary
โ Maintain spacing and alignment
Post #2818
5.3K
- โค 8