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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
New2PowerBI
Helper III
Helper III

Calculate and Categorize Employee Years of Service

I have a personnel table that has employee names and their hire date, among other values, and would like to categorize those years of service into the following:

0 -2 Years of Service

3 - 5 Years of Service

5 -10 Years of Service

10 or More Years of Service

 

My goal is to be able to do comparisons between different years of service and such, but I know I first need to calculate their years of service and then categorize into one of the above before I can start to use the information.

 

Any help will be greatly appreciated.  🙂

1 REPLY 1
dedelman_clng
Community Champion
Community Champion

This sounds like a classic "binning" (aka dynamic segmentation) report - you can find details on the DAX pattern for such categorization here:

 

http://www.daxpatterns.com/abc-classification-dynamic/

 

Hope this helps

David

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors