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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Vanshika_Gupta
Frequent Visitor

Headcount Calculation (Monthwise, quarterwise, yearwise)

Headcount report on POWER BI

Year

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

2024

450

434

424

432

433

 

 

 

 

 

 

 

2023

456

435

420

410

413

400

409

403

402

405

400

389

2022

330

345

378

356

355

350

367

360

389

379

380

387

 

Hey, I am working on HR data on POWER BI whereby I have to calculate headcount i.e. all the active employees present on a particular day....we have with us start date of an employee....so let's say if I want to capture headcount on 31-Mar-24 or 30-Oct-23 what formula should I use so that I can capture all the active employees on that particular date and not just new hires

 

If I want to build headcount report like this in power BI where I am having columns like start date of employee, end date of employee, name, title, level, etc,

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Vanshika_Gupta ,

Thank you for @ExcelMonke answer , and I have other suggestions:

Below is my table:

vxiandatmsft_0-1715739811868.png

It has employee columns, start date and end date and status columns for active or inactive.

The following DAX might work for you:

Measure = 
  CALCULATE(COUNT('Table'[Customer]),FILTER('Table','Table'[Flag] = "active"))

The final output is shown in the following figure:

vxiandatmsft_1-1715739921562.pngvxiandatmsft_2-1715739934449.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Vanshika_Gupta ,

Thank you for @ExcelMonke answer , and I have other suggestions:

Below is my table:

vxiandatmsft_0-1715739811868.png

It has employee columns, start date and end date and status columns for active or inactive.

The following DAX might work for you:

Measure = 
  CALCULATE(COUNT('Table'[Customer]),FILTER('Table','Table'[Flag] = "active"))

The final output is shown in the following figure:

vxiandatmsft_1-1715739921562.pngvxiandatmsft_2-1715739934449.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ExcelMonke
Super User
Super User

Hello, 
Assuming your data is straightforward (i.e. you have 1 date column, 1 column for employee, 1 column for active status, etc.), you should be able to complete this with a simple date slicer on your report.

If it's more complex, please share a bit more about how your data is structured. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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