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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How To Calculate Retirement Date

Dear Experts, I am trying to calculate employees' Retirement Date based on their Date of Birth. I tried the below measure and it is giving me errors.

errykus_2-1663663032981.png

 

 

My data is like this:

errykus_0-1663662939590.png

 

I want to display a table to show the total number of employees nearing retirement when I select a date on my slicer.

I'm stuck and I need a way out of this. Please help, thank you.

4 REPLIES 4
Anonymous
Not applicable

@JorgePinho unfortunately, it's not working. It doesn't show anything.

What is the data type of your column Birth Date?

Anonymous
Not applicable

The data type is Date

JorgePinho
Solution Sage
Solution Sage

Try this measure:

 

Retirement Date = DATEADD([Birth date],60,YEAR)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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