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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MuhammadSiddiq
Frequent Visitor

Employee Turnover

Hello,

 

I am needing help in clculating employee turnover to show monthly trend. The formula used to calculate turnover is like this, suppose if we want to calculate the turnover for the month of January then following formula can be used; 

 

Turnover for Janauary  = Employee left in Janauary /  Popoulation of janauary

Turnover for February  = Employee left in february /  Popoulation of janauary

Turnover for March      = Employee left in March /  Popoulation of janauary

Turnover for April         = Employee left in April /  Popoulation of April

Turnover for May          = Employee left in May /  Popoulation of April

Turnover for June          = Employee left in June /  Popoulation of April

Turnover for July           = Employee left in July /  Popoulation of July

Turnover for August      = Employee left in August /  Popoulation of July

 

and so on.....

 

If need the overall turnover for the whole year the we need to calculate by using following formula;

 

 

Turnover for year = Total number of Leaver during the year / Average (Population of Jan+ Population of April+population of July+ population of October)

 

 

I am unable to calculate this by using DAX, Can anybody help me out to calculate this..

 

 

Looking forward for solution

 

 

Thanks,

Muhammad Siddiq

 

11 REPLIES 11
Greg_Deckler
Community Champion
Community Champion

This looks like an interesting problem. Can you provide some example data and expected output for this? This would really help understand you problem.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

 

Hey Smoupre,

Thanks for replying and  i tried alot but failed to get the output am pasting a sample data for your reference.

 

MonthActive EmployeesSeparated EmployeesTurnover Formula Turnover %
Jan1001010/10010%
Feb10555/1005%
March10633/1003%
April10922/1062%
May1121515/10614%
June1152020/10618%
July11855/1184%
Aug1201515/11813%
Sept1212525/11821%
Oct1252121/12517%
Nov1301818/12514%
Dec15099/1257%
Yearly Turn Over(jan+April+July+Oct)/4148148/(100+109+118+125)/48%

 

 

This is just to give you an idea. Looking forward for the solution, as my presentation is due bby next week and i got stuck with this dynamic formula.

 

 

Regards,

Muhammad Siddiq

Anonymous
Not applicable

@MuhammadSiddiq,

Create the following columns in your table.

Quarter = IF(OR(OR(Table[Month] = "Jan",Table[Month] = "Feb"),Table[Month] = "March"),1,IF(OR(OR(Table[Month] ="April",Table[Month] ="May"),Table[Month] ="June"),2,IF(OR(OR(Table[Month] = "July",Table[Month] ="Aug"),Table[Month] ="Sept"),3,4)))
MinEmployee = CALCULATE(MIN(Table[Active Employees]),FILTER(Table,Table[Quarter]=EARLIER(Table[Quarter])))
Turnover = Table[Separated Employees]/Table[MinEmployee]


Then create the following measures in your table.

sum employees = SUM(Table[Separated Employees])
summinemployee = SUM(Table[MinEmployee])/3
Year Turn over = DIVIDE( [sum employees]/[summinemployee],MAX(Table[Quarter]))


1.JPG


Regards,
Lydia

Hey Lydia,

 

Thanks for the solution its works. But whan will be solution if the data is available in two seperate table one is of ACTIVE EMPLOYEE and the other one is of SEPARATED EMPOYEE and both are uploaded to data model then how we can calculate the same turnover by using the same formula. Below are the sample table for you reference.

 

Name          Month          Status

AlexJanActive
MariaFebActive
MariaFebActive
MariaFebActive
SidFebActive
ZahidMarchActive
ZoeMarchActive
ZeusMarchActive
KahisfAprilActive
KahisfAprilActive
CarolAprilActive
MartinMayActive
WickMayActive
Ricku\yMayActive
RexJuneActive
TedJuneActive
JulianaJuyActive
JuliaJuyActive
ArmanAugustActive
ArmanAugustActive
NancySeptActive
MatthewSeptActive
BelaOctActive
BettaNovemberActive
OliverNovemberActive

 

Name              Month            Status

SiddiqJanSeparated
SahidFebSeparated
JohnFebSeparated
JohnyMarchSeparated
TerryAprilSeparated
MartinMaySeparated
LutherJuneSeparated
KatherineJuySeparated
WilliamsAugustSeparated
BonySeptSeparated
BrettaOctSeparated
CarlaNovemberSeparated

 

 

Looking for a solution from you for making it dynamic.

 

 

Regards,

Muhammad Siddiq

Can you just use an Append query to append the two tables together or is there a reason you need them in two separate tables?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hey Smoupre,

 

I can append both tables together also there is no special reason to use both tables separate. The only reason for using both tables separated is to build relationship and to make the formula more dynamic and functioning. The calculated measure can work for both Month slicer and year slicer also.

 

 

Looking forward some magic from you guys.

 

Regards,

Muhammad Siddiq

Anonymous
Not applicable

@MuhammadSiddiq,

Please help to post expected result based on the new sample tables you shared.

Regards,
Lydia

okay i am attaching shortly

Hey Lydia,

 

Below is the expected result from the attached 2 table. The approach and formula will same as you calculated in first example i.e 8%.

But now 2 separated tables are uploaded to data models and are lonked with the dimension table and we need to calculate the same turnover using the previous approach and formula. The expected results are ;

 

 

Month    -             Turnover%

Jan33%
Feb67%
March33%
April33%
May33%
June33%
July50%
August50%
Sept50%
Oct100%
November100%
December100%
Yearly Turnover578%

 

 

we need to calculate the monthly turnover as well as yearly from the data table using sums and averages but with the same previous approach.

 

Regards,

Muhammad Siddiq

any luck on the above solution?

I can also share sample excel file for best understanding.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.