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
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

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.