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! Request now

Reply
NickzNickz
Helper IV
Helper IV

Get year services and age ?

Hi...

 

I have created a table name "Occupation" and "Profile". I prefer to have it in Power Query.

In Table Occupation, i have column name Date_Joined.

  1. How can I get the year of service?
  2. How can I get Group of Year Service?
    Example:
    NickzNickz_0-1701151850475.png

In Table Profile, i have column name Age.

  1. How can I get Group of  Age?
    Example:
    NickzNickz_1-1701152193290.png

Regards,

NickzNickz

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @NickzNickz 

For your first question, I built this table

vjialongymsft_0-1701224173357.png

 

Then use this formula to get column year of service

 

vjialongymsft_1-1701224181640.png

 

vjialongymsft_2-1701224181641.png

 

 

Then use this formula to get column Group of Year Service

vjialongymsft_3-1701224191034.png

 

vjialongymsft_4-1701224191036.png

 

For your second question, I built this table

vjialongymsft_5-1701224198150.png

 

Then use this formula to get column Group of Age

vjialongymsft_6-1701224204705.png

 

vjialongymsft_7-1701224204705.png

Best Regards,

Jayleny

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hello @NickzNickz 

For your first question, I built this table

vjialongymsft_0-1701224173357.png

 

Then use this formula to get column year of service

 

vjialongymsft_1-1701224181640.png

 

vjialongymsft_2-1701224181641.png

 

 

Then use this formula to get column Group of Year Service

vjialongymsft_3-1701224191034.png

 

vjialongymsft_4-1701224191036.png

 

For your second question, I built this table

vjialongymsft_5-1701224198150.png

 

Then use this formula to get column Group of Age

vjialongymsft_6-1701224204705.png

 

vjialongymsft_7-1701224204705.png

Best Regards,

Jayleny

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.