ATliQ Hardware faces challenges in tracking employee attendance, understanding work preferences, and gaining insights into absenteeism trends due to reliance on Excel sheets. This lack of structured data makes it difficult for HR and management to optimize resources, plan capacity, and address employee well-being. A Power BI-based data analytics solution is proposed to provide real-time insights into attendance, absenteeism, and operational efficiency, supporting strategic planning, resource allocation, and employee engagement.
-
Data Management Challenges:
- Heavy reliance on Excel sheets for tracking employee attendance and work preferences.
- Inconsistent and unstructured data, making insights extraction difficult.
-
Attendance and Work Trends:
- Difficulty in analyzing work-from-home vs. work-from-office patterns.
- Understanding preferences for work-from-home days (e.g., Mondays or Fridays).
-
Absenteeism Analysis:
- Lack of insights into reasons for sick leaves.
- Identifying patterns of mass absenteeism, which could indicate health issues or seasonal factors.
-
Operational Efficiency:
- Limited ability to plan team-building activities based on workforce availability.
- Challenges in capacity planning for hybrid work models and infrastructure optimization.
-
Strategic Planning:
- Need for better insights to align HR strategies and operational decisions.
-
Proposed Solution:
- Implementation of a Power BI dashboard to provide real-time insights into attendance, absenteeism trends, and operational efficiency.
- Connected Power BI to an Excel workbook containing multiple sheets (e.g., April, May, June).
- Imported data from these sheets into the Power BI environment.
- Accessed the Model View in Power BI to establish relationships between the sheets (e.g., employee code, date).
- Verified that data relationships were correctly defined based on the common columns across the sheets (e.g.,
employee_code
,attendance_date
). - Ensured that the model structure is appropriate for analysis (fact table: attendance data, dimension tables: employee, dates).
- Attendance Data:
- Removed rows with missing or invalid employee codes (e.g.,
-1
,0
values). - Ensured that only relevant data, like specific months, was retained after filtering.
- Removed rows with missing or invalid employee codes (e.g.,
- Created a new column to standardize dates for analysis (e.g., consolidating multiple date columns into one).
- Used Power Query's Unpivot feature to transform columns into rows, ensuring that each record had one date associated with the employee.
- Identified missing attendance data (e.g., missing 1st May data) and flagged as necessary.
- Removed duplicates or inconsistent records (e.g., newline characters in columns).
- Applied transformations to clean and standardize the data.
- Applied Unpivot Other Columns to ensure date data is in a single column.
- Create a date-based column (e.g., month start dates) using the STARTOFMONTH function.
- Format the dates in "MMM YY" format and create slicers for month-based analysis
-
Create a column using a Switch statement to assign:
1 for full work-from-home days
0.5 for half work-from-home days
0 for other cases
-
Sum this column to create a measure for the total work-from-home count.
- Verified transformed data:
- Ensured that no irrelevant data remained, such as incorrect or invalid employee codes.
- Confirmed that the date data was correctly formatted and consolidated into a single column.
- Conducted a random check to validate the accuracy of the transformed data (e.g., checked for correct employee attendance dates).
- After transformations, clicked Close & Apply to load the cleaned data into Power BI for analysis and visualization.
- Disabled the load for intermediate steps to optimize the final dataset.
This project analyzes employee attendance data using custom DAX measures in Power BI. Below is a detailed summary of the key metrics and their DAX implementations.
This measure calculates the total number of working days by excluding non-working days (WO for weekends and HO for holidays).
DAX:
VAR totaldays = COUNT('Final data'[value])
VAR nonworkdays = CALCULATE(COUNT('Final data'[value]), 'Final data'[value] IN {"WO", "HO"})
RETURN totaldays - nonworkdays
Calculates the total number of work-from-home days.
DAX:
SUM('Final data'[WFH Count])
Calculates the total number of sick leave days.
DAX:
SUM('Final data'[SL Count])
Calculates the number of present days, including work-from-home days.
DAX:
VAR presentdays = CALCULATE(COUNT('Final data'[value]), 'Final data'[value] = "P")
RETURN presentdays + [WFH Count]
Determines the percentage of presence based on total working days.
DAX:
DIVIDE('Measure Table'[Present Days], 'Measure Table'[Total working days], 0)
Calculates the percentage of sick leave days out of the total working days.
DAX:
DIVIDE('Measure Table'[SL Count], 'Measure Table'[Total working days], 0)
Calculates the percentage of work-from-home days out of the present days.
DAX:
DIVIDE('Measure Table'[WFH Count], 'Measure Table'[Present Days], 0)
Here are insights and observations based on the provided dashboard:
-
Presence Insights:
- The overall Presence % is 91.83%, indicating strong attendance.
- WFH (Work from Home) percentage is 10%, showing a reasonable proportion of remote work.
- SL (Sick Leave) percentage is only 1.10%, suggesting minimal health-related absenteeism.
-
Trend Analysis (by Date Charts):
- Presence % Trend:
The presence trend shows fluctuations but maintains consistency above 80% in most months. - WFH % Trend:
WFH days see noticeable spikes in certain periods, suggesting planned remote work schedules or special scenarios. - SL % Trend:
Sick leave percentages remain low but have sporadic spikes, possibly indicating health incidents during specific periods.
- Presence % Trend:
-
Day of the Week Insights:
- Highest Presence: Monday (93.21%) and Wednesday (92.11%) have the highest attendance rates.
- WFH Preference: Friday (13.01%) shows the highest WFH percentage, indicating a possible end-of-week remote work policy or employee preference.
- SL Occurrence: Monday (1.62%) has the highest sick leave percentage, which could suggest post-weekend health issues.
Metric | April 2022 | May 2022 | June 2022 | Trend |
---|---|---|---|---|
Presence % | 94.05% | 89.75% | 91.82% | Decreased in May, recovered in June |
WFH % | 9.08% | 11.23% | 9.44% | Increased in May, then decreased |
SL % | 0.43% | 1.68% | 1.18% | Spike in May, slight recovery in June |
- Presence was highest in April (94.05%) but dropped in May (89.75%) due to increased WFH and SL%.
- WFH peaked in May (11.23%) but started decreasing in June (9.44%).
- Sick Leave (SL) was lowest in April (0.43%) but peaked in May (1.68%) before slightly improving in June (1.18%).
-
Highest Presence:
- April: Adriel Pace & Adyson Moyer (100%)
- May: Caylee Meadows (100%)
- June: Aditya Walls, Adriel Pace & Adyson Moyer (100%)
-
Lowest Presence:
- April: Goerge carr (52.38%)
- May: Kaylah Schultz (27.27%)
- June: Avanna Atkins (0%) - On extended sick leave
-
Highest WFH %:
- April: George Carr (100%)
- May: Gustavo Ritter (100%)
- June: Alexander Davenport (100%)
-
Highest SL %:
- April: mckayla Parker (9.52%)
- May: Ayanna Atkins (22.73%)
- June: Emma Freeman (19.23%)
Metric | Best Presence Day | Lowest Presence Day | Most WFH Day | Highest Sick Leave Day |
---|---|---|---|---|
April | Monday (96.46%) | Thursday (90.42%) | Friday (12.15%) | Thursday (1.30%) |
May | Monday (90.74%) | Friday (86.54%) | Friday (15.93%) | Monday (2.41%) |
June | Tuesday (95.54%) | Friday (89.15%) | Monday (10.96%) | Monday (2.55%) |
Key Insights:
- Monday remains the highest sick leave day across months, suggesting employees may be extending weekends.
- Friday consistently has the highest WFH percentage, peaking in May (15.93%).
- Presence is generally lower on Fridays, likely due to WFH preferences.
- Implement wellness initiatives to reduce sick leave, especially on Mondays when SL is highest.
- Monitor employees with consistently low presence (e.g., Avanna Atkins in June).
- Since Friday has the highest WFH% every month, consider formalizing a hybrid work policy (e.g., designated remote days).
- Employees with high WFH percentages (e.g., Alexander Davenport in June) should be provided with collaboration tools for efficiency.
- Since Friday has the lowest presence across all three months, explore engagement strategies like flexible hours, team activities, or early log-off options.
- April had the highest presence (94.05%), but May saw a dip (89.75%) due to increased WFH and SL%.
- June showed signs of recovery (91.82%) as WFH and SL percentages dropped.
- Monday is the most affected day for SL, while Friday consistently has the highest WFH.
- A strategic hybrid work model and employee wellness programs can further stabilize presence and reduce absenteeism.
Final Recommendation:
Organizations should continue monitoring trends and adjust policies based on employee attendance patterns for better workforce productivity.