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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Headcount and Turnover based on Dataset

Hello

 

I am very new to Power BI and slowly learning it. I am doing some people metrics for my company. Unfortunately, the system we use only gives you the data as of date of creating the report (i.e. cannot retrive data as of a previous state of time). 

 

My dataset looks like this (headers with * are caculuated on excel):

 

EmployeeDepartmentBusiness UnitEmployment TypeStatusStatistic GroupEmployee DateTermination DateGrounds for TerminationTenure in Months*Tenure Group*
103A59DEP3U1Part TimeActiveB28/07/2020 nullnull 231-2 Years
101C18DEP1U2Full TimeTerminatedA23/09/20136/07/2021RESIGN935-10 Years
000B47DEP2U4Full TimeActiveA31/03/2003 nullnull 23115-20 Years
102D13DEP1U2CasualTerminatedB6/10/201510/06/2022REDUNDANT805-10 Years

 

(The dataset is an appendum of Active Employees with Start Date before July 2022, and Terminated Employees from June 21 to June 22.)

 

I want to do a Column Chart of the Headcounts per Month End from June 21 to June 22 similiar to pictured below (fake numbers).

 

delosdinh_3-1658469574607.png

 

Because of the limitation of the dataset, to get an accurate headcount for month end, I will have to do this kind of calculation:

 

Headcount for Month End X =
("Sum of Active Employees" - "Employee Start Dates after X")
+
("Sum of Terminations" - "Termination Dates within Month X")

 

I can easily do this cacluation for each month on Excel. However, I've been asked to use the visualisation on Power BI with the ability to dynamically filter and splice (e.g. Department, Employee Type, Tenure). Is there a measure I have to use or calculated column? Also, how do I create date X Axis?

 

Futhurmore, from this, I will need to calculate Turnover Rate per Month. Again, I can do this on Excel, but I am struggling to do this on Power Bi.

 

Turnover Rate for Month = (

"Terminations within Month"

/

("Headcount From Pervious Month End" + "Headcount of Current Month End") /2)
)
x 100

 

I have to make sure they are dynamic for the purpose fo splicing and filtering.

 

I'm kind of lost on how to do this. I'm a very new to DAX. 

Thank you in advance.

 

*edited, corrected turnover rate formula

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Refer to the blog and attached file on this topic after signature

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Refer to the blog and attached file on this topic after signature

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi

 

Thank you so much for this, I've got the headcount working after tweaking the formula. Added the brackets in Red. 

 

From my underestanding and please correct me if I'm wrong, the original formula misses out a few lines as the || (OR) is expressed with the &&(And) rather from the Employee Start Date, so the added brackets will give me a more accurate number. 

 

Current Employees = CALCULATE(COUNTx(FILTER(Employee,(Employee[Start Date]<=max('Date'[Date]) && (ISBLANK(Employee[End Date])) || Employee[End Date]>max('Date'[Date]))),(Employee[Employee Id ])),CROSSFILTER(Employee[Start Date],'Date'[Date],None))

 

Thank you again, I just need to calculate the Turnover Rate now. I need the turnover rate per month as well as the overall rate from June 21- June 22, are you able to help me with that?

 

Turnover Rate for Month = (

"Terminations within Month"

/

("Headcount From Pervious Month End" + "Headcount of Current Month End") /2)
)
x 100

 

Turnover Rate for Period = (

"Terminations all period"

/

("Headcount from the beginning of period [June-21]"+"Headcount at the end of the period [June-21]")/2)

)
x 100

 

I have no idea what these actually calculate, can you explain sorry?

  1. Last Period Active Employees: Last Period Employees
  2. Period over Period Change %: Employee Change%

Thank you

 

*edited, corrected turnover rate formula

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.