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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kamalbandam
Helper III
Helper III

Count employees working for same client for 5 years

Hi,

 

I want here to acheive that if an employee is working for client A for 5 years or 3 years which I should be also able to drag using a slicer and get the list of employees. Any help ?

thanks in Advance,

Kamal 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @kamalbandam 

 

You could add a column into the table to calculate how many years an employee has been working for a client. Then drag this column into a slicer by which you can switch the years. To display the filtered employees, you could put employee column into a table so that it can be filtered when you select a value in the slicer.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

amitchandak
Super User
Super User

@kamalbandam , need data for better suggestions.

 

We can have a column

Age = datediff([hire date], today(), month)

 

You can create a bucket

Switch( true() ,

[Age] < 12, "Less than year",

//add others

)

 

And can use age or age bucket as filter

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.