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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Chandra_maha
Helper I
Helper I

PowerBI Attrition Dashboard for Monthly and yearly

Hi All,

 

I am trying to create monthly/Yearly PowerBI attrition. Following is data. 

 

Attrition = Total No of employee left for month/No of average employee for month*100

Number of average employee = no of employee at the start of the month + no of employee at the end of the month/2

 

Chandra_maha_0-1660648882287.png

The desire output is 

Chandra_maha_1-1660648925498.png

Thank you!

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

29 REPLIES 29

Use the DATESBETWEEN() function.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you for that. Actually I am trying to create graph. As shown below

Chandra_maha_0-1662372857637.png

Blue one - Regular month on month Attrition graph. Which we have created already
Red one (Need to create) - Attrition graph for 6 month.
Example - Suppose I am click June then it will give me the attrition percentage of last 06(Jan to June) month and it will be go on.
Suppose I click on Aug then it be from march to Aug. I am trying to get that. Can you help me on this.
You can consider the same data set. 

I may not be able to devote so much time to solving this one.  May be someone will help you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank, you have helped me a lot 🙂

Dhacd
Resolver III
Resolver III

@Chandra_maha , can you give clarity on number of average employees?

Ex -

Chandra_maha_0-1660651532781.png

As you can in above January table -  at the start of month No. of employee is 1. This is "no of employee at the start of the month"
And if you add all the employee joined in that month then its 32. This is "No of employee at the end of the month".

Hi, could you please upload the attrition file, so I could use it for my data? Thanks in advance!

Should we add all the employees who joined in January and subtract those who left the company to find the no of employees at the end of the month?

and what if December had about 15 employees joined, Should we consider them for the no of employees at start of the month for Jan? 

Hello,
Yes, we need to conside as you mention. I have created table for explanation 

Month Hired EmployeeLeft EmployeeStart of the MonthEnd of the Month
Dec'142002
Jan'151023
Feb'152035
March'151253
April'154136

 

We get "End of Month Employee" count by adding "Hired Employee" and subtracting "Left employee". 
Also, last month "End of month Employee" (Dec'14 = 2) would be "Start of the month employee" count (Jan'15) = 2

Helpful resources

Announcements
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.