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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

HR Dashboard Data Modelling of Active Employees

Hi all,

I am in the process of developing a HR dashboard for my organisation and am struggling to get my head around the way I should set up the data; I would just like to simply move the new sheets over, click refresh, and the terminations for example can be updated.

 

Once set up, I am hoping to calculate the following: Employee turnover, Attrition rate, number of new hires in a month, number of exits in a month. Further to this, I would like to have historical data as well so in 6 months - a years time, we can see the turnover over time.

 

I have two excel spreadsheets that I receive on a monthly basis which contains the following:

 

Spreadsheet 1 - all active employees as of a certain date (does not just contain new starters, all employees who are active in the system)

Sample data:

Employee IDEmployee NameHire DateLocation
1Joe Bloggs20 March 2020NY
2Kevin Smith30 April 2018SF

 

Spreadsheet 2 - Monthly Terminations

Employee IDEmployee NameLeave DateTerm Reason
4Steph Beatrice3 Jan 2021Relocation
5Brad Ford1 Jan 2021Better work conditions

 

At the end of every month, I would just like to place the updated listing in the correct folder, click refresh, and then calculations are possible.

 

My question is: how would you recommend the data is set up given the two spreadsheets that I have available to me on a monthly basis. I was thinking that maybe I needed to append the 'active employee' data, but am not sure.

 

Your help is much appreciated. Let me know if you need me to reexplain something, but hopefully I have explained this enough.

5 REPLIES 5
mahoneypat
Microsoft Employee
Microsoft Employee

I would approach this as follows:

 

- make a query that appends all your active employee files (with combine & edit feature) and remove duplicates

- make another query that appends all your termination files (and remove duplicates if applicable)

- merge the second query into the first on the employeeID column, and expand the termination date and reason columns

- disable load on the termination tables

- load the table with employees data and terminations to your model for analysis/visualization

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hi Pat,

Thanks for that, are you suggesting in the end I would only have one query that would contain both termination dates from merging this together?

amitchandak
Super User
Super User

@Anonymous , You do not have a termination in the first table ? that is the part second table?

Can you share a better sample with the same employees? 

 

Refer my HR blog, if this can help a bit -https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

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

@amitchandak Unfortunately, the data that has been given to me does not contain an end date (Spreadsheet 1), and I can only get the end date from Spreadsheet 2 which has the monthly terminations

@Anonymous , Create a new column in table 1

Leave Date = Maxx(filter(Table2, Table1[Employee ID] = Table2[Employee ID]), table2[Leave Date])

 

Now you can use the blog I mentioned

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

https://www.youtube.com/watch?v=e6Y-l_JtCq4

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors