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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Easley06
Helper II
Helper II

AVG TENURE IN YEARS

Hi,

i have measure for this avg tenure question is is this the right way on how to AVG this tenure 

measure:

 

AVG Tenure days:=
"AVG " & CALCULATE(FORMAT(AVERAGEX(
VALUES(vw_Employee_Attrition[biometric id]),
CALCULATE(AVERAGE(vw_Employee_Attrition[Active Tenure year]))
),"##.0") & " Years",FILTER(vw_Employee_Attrition,vw_Employee_Attrition[IsActive] = 1))

 

active tenure year 

= DATEDIFF(vw_Employee_Attrition[Hire Date],TODAY(),YEAR)

 

Easley06_0-1686042388973.png

 

 

thanks.

 

2 REPLIES 2
olgad
Resident Rockstar
Resident Rockstar

Are you only looking at the tenure of those who are still employed in the company?, if not, then you would need to identify leavers, and if it is a leaver then calculate date diff not versus today but the exit date and if it is an active headcount then tenure will be calculated the way you did. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

yes tenure whos still in the company. thanks.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.