Create a predictive dashboard in Power BI to forecast employee turnover rates based on historical data and visualize actionable insights.
Step 1: Dataset Overview
Dataset Details:
The dataset contains historical employee data with the following columns:
-
EmployeeID: Unique identifier for each employee.
-
Age: Employee age.
-
Department: Department where the employee works.
-
Tenure: Years of service.
-
JobSatisfaction: Rating on a scale of 1 to 5.
-
MonthlyIncome: Salary in dollars.
-
PerformanceRating: Rating on a scale of 1 to 5.
-
Overtime: Indicates if the employee works overtime (Yes/No).
-
Attrition: Indicates if the employee left the company (Yes/No).
Step 2: Setting Up the Environment
- Open Power BI Desktop.
- Load the dataset by clicking on Home > Get Data > Excel (or CSV, depending on the file format).
- Preview and ensure the data types are correctly assigned (e.g., numeric, text).
Step 3: Data Preparation
-
Clean Data:
- Remove duplicates or irrelevant columns if present.
- Ensure no missing values for key attributes like Attrition, Tenure, or PerformanceRating.
-
Create New Columns:
- Add a column for Tenure Group: Categorize employees into “0-2 years,” “3-5 years,” and “6+ years.”
- Convert Overtime into binary values (Yes = 1, No = 0) for predictive modeling.
-
Transform Attrition:
- Convert Attrition into binary values (Yes = 1, No = 0) to use it as a target variable for prediction.
Step 4: Build Predictive Model in Power BI
- Go to Home > Transform Data to load Power Query.
- Use the AI Insights feature in Power BI to build a predictive model:
- Select Attrition as the target variable.
- Use predictors like Age, Department, Tenure, JobSatisfaction, Overtime, and MonthlyIncome.
- Generate predictions and save them as a new column (e.g., Predicted Attrition).
Step 5: Create Visualizations
-
Turnover Forecast Line Chart:
- Add a line chart showing the predicted turnover rate by department over time.
-
X-Axis: Tenure Group.
-
Y-Axis: Predicted Attrition Rate (%).
-
Attrition Risk Heatmap:
- Create a heatmap to visualize attrition risk by Department and PerformanceRating.
-
Axis: Department (X-axis), Performance Rating (Y-axis).
-
Color Intensity: Predicted Attrition Rate.
-
Departmental Summary Table:
- Add a table visualization summarizing:
- Department
- Average Tenure
- Predicted Attrition Rate
-
Interactive Slicer:
- Add slicers for filtering data by JobSatisfaction, Overtime, and Tenure Group.
Step 6: Interactivity and Design
- Add interactivity to the dashboard by linking slicers to all visuals.
- Use tooltips to show detailed employee information when hovering over a data point.
- Format visuals for clarity:
- Use appropriate labels, titles, and data colors.
- Highlight departments with the highest turnover risk.
Step 7: Insights and Action Items
Analyze the dashboard to derive insights:
1. Identify departments with high predicted attrition rates.
2. Observe the impact of overtime on attrition trends.
3. Propose actionable strategies, such as:
- Revising overtime policies.
- Offering incentives to employees with low job satisfaction.
Discussion
- What are the key factors contributing to employee turnover in this dataset?
- How can HR intervene based on the predictive insights?
- What additional data might improve the model’s accuracy?