Hello Alteryx Community!
I am having issues with a reporting request which I was hoping the group could assist with. I need to derive a count of active employees by month based on their hire and termination date. I don't want to count partial workers so an employee would need to be active at the company for the entire month and excluded if they were hired or terminated some time during that reporting month. I have tried converting the hire and termination dates in to a month-year format, but am getting caught up with identifying which employees fall in or out of that reporting period and how to count results. Any assistance or suggestions would be greatly appreciated.
Input:
Name | hiredate | terminationdate |
Vicky | 7/24/1978 | 5/1/2023 |
Dianna | 5/11/1981 | |
Phillip | 9/21/1981 | |
James | 5/21/1990 | |
Darwin | 12/29/1986 | |
Lydia | 3/9/1987 | 1/6/2023 |
Matt | 6/5/2006 | |
Carrie | 2/22/1984 |
Output:
Reporting period | Sample |
Jan-23 | 1200 |
Feb-23 | 1050 |
Mar-23 | 955 |
Apr-23 | 1354 |
May-23 | 1267 |
Jun-23 | 1492 |
Jul-23 | 1560 |
Aug-23 | 1401 |
Sep-23 | 1232 |
Oct-23 | 1752 |
Nov-23 | 1403 |
Dec-23 | 1122 |
@MHS what is the logic for calculating sample 1200 in Jan 2023?
None, its just an example of the output that I would like to calculate.
I need to calculate how many employees are active per month taking into account hire and termination dates.