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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.