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
omkar_nag123
Regular Visitor

Avg Employee Stay Month

Hii Community 

how we calculate Avg Employee Stay Month in HR Data.

Capture HR.PNGCapture HR2.PNG

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi., @omkar_nag123 

Could you please tell me whether your problem has beem solved?

If yes, you could accept the helpful answer as solution. 

If not, please share more information and expected result.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@omkar_nag123 , Hope you have a termination date too, in that case only for a terminated employee

 

averagex(Values(Table[empID]) calculate(datediff([HireDate], [termination date] , day) ))

 

refer if needed

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

@omkar_nag123 ,

Try like

 

averagex(Values(Table[empID]) calculate(datediff(Min(Table[HireDate]), max(Table[termination date]) , day) ))

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.