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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-jialongy-msft
Community Support
Community Support

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
v-jialongy-msft
Community Support
Community Support

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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