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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register 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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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