Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mhaider99
New Member

How to calculate employee headcount by department over a period of time with transfers

I have managed to calculate the headcount and actual number of staff by department over a period of time using starting date and leaving date using a calendar table. However, now i need to re-do the analysis which should also take into consideration the headcount of employees that have transfered to another department.

 

Headcount will be the aggregate of new joiners

 

Active Staff will be the Head count - leavers - transfers

 

Lets say the table is Employees and has the following fields:

a) Employee ID

b) Date of joining

c) Departmend joined

d) Transfer date

e) Department transfered to

f) Leaving Date

 

If employee A joined in January 2022, Department Finance, then the headcount of Department Finance should be incremented by 1 and active staff value should be incremented;

If the employee A transfers to another department (Procurement) in August 2022 then the headcount of Department Finance should not be impact but the active staff should decreased by 1 and the headcount and active staff of department Procurement should be incremented by 1.

 

In summary, need to monitor the headcount and active staff by department as changes to joiners and transfers and leavers happen over a period of time.

 

Any help would be really appreciated. 

1 REPLY 1
AkameNoGamma
Frequent Visitor

I also need this to meausure the headcount of each department within a fiscal year (april to march). most of the codes that i see referring to the date of join and separation date of an employee, and those formulas work as long as you are looking at overall headcount and attrition of your company.

 

when it comes to measure at the department level, you will need an opening headcount of each departments based on their hire date, separation date, and effective date of transfer, the the result must be the same with your overall headcount.

 

i dont have the formula right bow but what i am thinking is to merge the files into one. like all hires, separation and transfer. (headers: employee ID, effective date, Status (which shows hire date, separation date, and transfer date of the employee), and last is department (this will show the employee's first department, the department he got transffered to, and the last department before he got separated)

 

after this, i just need the formula measure this. so if i need to get the opening headcount of April 1, 2023, then all active employees as of march 30 will show up, which is based on their status and department.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors