DAX code
Average Tenure (Years) =
AVERAGEX(
'Employee',
DIVIDE(DATEDIFF('Employee'[HireDate], TODAY(), DAY), 365.25)
)
Averages how many years each active employee has been with the company.
Type your table and column names once. Every measure below updates.
Average Tenure (Years) =
AVERAGEX(
'Employee',
DIVIDE(DATEDIFF('Employee'[HireDate], TODAY(), DAY), 365.25)
)
Filter to active employees only (blank TerminationDate) if the report shouldn't include people who have left.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Average Tenure.