Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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,
Solved! Go to Solution.
Hi @Vanshika_Gupta ,
Thank you for @ExcelMonke answer , and I have other suggestions:
Below is my table:
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:
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.
Hi @Vanshika_Gupta ,
Thank you for @ExcelMonke answer , and I have other suggestions:
Below is my table:
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:
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.
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.
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |