2022: Week 51 - Parsing an Unfortunate Report Format (HR Month)
Challenge by: Kelly Gilbert
This is the third challenge in our special HR month. Thanks to long time participant Kelly Gilbert for sharing her real world challenges she faces in her role with data prep.
______________________________
Input
All of the data is in one long text string:
Requirements
Remove the header rows (row 1 and year headers)
Parse five fields from each row:
Application Month
Work Experience
Number Supervised
Industry Experience
Candidate Count (the number in parentheses)
Remove blank columns and the original data column
Convert the application month to the month-ending date
For each month, calculate the % of applicants who meet the preferred qualifications.
Preferred qualifications are:
Work Experience: at least 4 years
Number Supervised: more than 10
Industry Experience: Yes
Flag the rows that meet all of the preferred calculations
For each month, sum the total number of applicants and the number meeting the preferred qualifications
Calculate the % who met the preferred qualifications. Output the % with one decimal place (e.g. 10.2% = “10.2”)
Output the data
Output
- 4 fields
- Application Month
- Total Candidates
- Candidates with Preferred Qualifications
- % of Candidates
- 6 rows (7 including headers)