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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ugurozdemir
Frequent Visitor

Employee Tenure Band Calculate

Hi, 

Hi, I have a table like the one below.

 

What I want to do is calculate the tenure banding (1-3 Year xxx employee, 3-5 year xxx employee exc.) for both the leavers and the employees.

I would be glad if you can assist.

 

Tenure Employee = CALCULATE(AVERAGEX('Turn Over', ROUNDDOWN(DATEDIFF('Turn Over'[Hire Date],NOW(),MONTH)/12,0))FILTER('Turn Over','Turn Over'[Employee]=1))
 

Tenure Term = CALCULATE(AVERAGEX('Turn Over', ROUNDDOWN(DATEDIFF('Turn Over'[Term Date],'Turn Over','Turn Over'[Term Date],MONTH)/12,0))FILTER('Turn Over','Turn Over'[Employee]=0))

 

how can I combine them? Or how i calculate in power query?

 

Hire DateTerm Date
29.01.202114.03.2021
10.01.2020 
17.08.2020 
7.01.202026.03.2020
10.07.2020 
10.12.2018 
25.02.2015 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ugurozdemir , Check the attached file. I have done this on my data. I do have created age Bucket

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
ugurozdemir
Frequent Visitor

Thank you @amitchandak 

amitchandak
Super User
Super User

@ugurozdemir , Check the attached file. I have done this on my data. I do have created age Bucket

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.