This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello!
I have a table that provides employee ID, their hired date and term date. By using hired and term date, i need to display how many team members were active per month.
For example, row 2-4 will be considered as active employees as of January 2021 and row 5-8 will be considered as active employees as of Feb 2021. I am unsure I should create this into dax. Appreciate your help!
Hi @Anonymous
1. Disconnect your dates table from fact table.
2. Use this measure:
Hi @Anonymous ,
According to your sample data, for Jan-21, the count of Active Hires seems to be 6 not 3.
In addition, not very clear about this:
If an employee has future term date for the current month, i still want to be able to count that employee
but the current dax is removing all employees with the term date for the current month. How can I update the below dax to capture that?
So could you please provide me with more details about your table and your problem to help us clarify your scenario? Or share me with your pbix file after removing sensitive data.
Refer to:
How to Get Your Question Answered Quickly - Microsoft Power BI Community
How to provide sample data in the Power BI Forum - Microsoft Power BI Community
Best Regards,
Eyelyn Qin
@Anonymous , refer m blog on same topic
Or the attached file after signature
Thank you @amitchandak. A quick question regarding to current employees.
If an employee has future term date for the current month, i still want to be able to count that employee
but the current dax is removing all employees with the term date for the current month. How can I update the below dax to capture that? Thank you!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 22 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 29 | |
| 23 | |
| 22 |