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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Vantage111
Frequent Visitor

Summarizing Employee Numbers by date

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:

Vantage111_1-1676989275969.png

 

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.

 

Vantage111_0-1676989041042.png

 

Regards - and thanks in advance....

3 REPLIES 3
Vantage111
Frequent Visitor

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, 

AlexisOlson
Super User
Super User

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.

 

Vantage111_0-1676995713737.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.