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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculate "age" of employee at a given month.

Hello ,

 

I am looking to create a visualization for the age of employees for a given month. I have the start date of an employee. If the employee is promoted internally or has quit, there is an end date. If the employee joins in January, then on Feb, his age is 1 month. March, his age would be 2 months. If he quits in March or gets an internal promotion, then the age won't be calculated after that. 

 

This is the data I have :

 

Capture.PNG

Can someone help me with this please?

 

This is the visualization I am looking for.

 

Capture.PNG

 

 

 

2 ACCEPTED SOLUTIONS
LivioLanzo
Solution Sage
Solution Sage

hey @Anonymous

 

download the power bi file Here: https://1drv.ms/u/s!AiiWkkwHZChHjxhUkuLvcCyKZMY_

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

Hi @Anonymous

 

thank you for the feedback. Could you kindly mark my post as an accepted solution?

 

thank you

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

5 REPLIES 5
LivioLanzo
Solution Sage
Solution Sage

hey @Anonymous

 

download the power bi file Here: https://1drv.ms/u/s!AiiWkkwHZChHjxhUkuLvcCyKZMY_

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Anonymous
Not applicable

Thank you so much! this works perfectly!!

Hi @Anonymous

 

thank you for the feedback. Could you kindly mark my post as an accepted solution?

 

thank you

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Anonymous
Not applicable

Here you go! 

 

Name of EmployeeDate of JoinDate of Exit/Internal PromotionDepartmentCurrent Department
a1-Jan-10 AMGAMG
b1-Jan-12 AMGAMG
c1-Jan-16 AMGAMG
d1-Jan-16 AMGAMG
e1-Jan-1721-May-18AMGCSP
f1-Jan-1713-Jul-18AMG exit
g1-Jan-171-Apr-18AMGCSP
h1-Mar-171-Apr-18Validation ServicesCSP
i1-Jan-1713-Jul-18AMG exit
j1-Aug-1718-Apr-18AMGLead
k1-Aug-1718-Mar-18AMGLead
l1-Aug-171-Apr-18AMGCSP
m1-Aug-1718-Jun-18AMG exit
n17-Dec-17 AMGAMG
o17-Dec-17 AMGAMG
p18-Feb-18 Validation ServicesLead
q18-Feb-1828-Feb-18AMG exit
r18-Feb-1818-Apr-18AMG exit

 

PattemManohar
Community Champion
Community Champion

@Anonymous Could you please post the sample data (able to copy) which will be helpful to resolve the issue quicker. Anyway, thanks for the screenshots.





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.