This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA 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.
I have a table that has an employee ID, a date when they joined the company (join_date) and a date when they left the company (leaving_date). An employee is still a member until the leving_date is no longer a null.
I am trying to create a new table that will contain the following information:
The end of any Year/Month/Quarter number of leavers in the period, number of joiners in the period and the total number of employees still in the business.
Sample from existing table:
I have made some attempts at creating the new table, this is about the closest i've come to getting it to work, pretty sure there is a reasonably simple fix.
Regards - and thanks in advance....
So....still need to work out out the other two elements, number of Leavers and Joiners in a given period.
With the help of AlexisOlsen and my brain defugging, I have a column that gives me the TOTAL employees on agiven date,
Try [Date] instead of Date.
Alexis
Thank you, I had spotted the error and also another two that I will put below for completeness.
Changed the MAX(Employee[join_date]) as in the previous version anyone joining after the last leaver would not register.
Also added the OR employee[leaving_date] = Blank() to include those employees that have not left.
Check out the May 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 |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 |