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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ElvirBotic
Helper III
Helper III

Add Years to Date

Hello, I have a table with two columns. Column A is a Install Date and Column B is the life expectancy of that asset. Life expectancy is always X amount of years. I want to take the date an asset was installed and calculate the replacement date using those two columns. 

 

I have tried using the DATEADD expression, but that only allowed me to do a fixed amount of years. SInce each asset has its own life expectancy I had no success simply adding to that install date in a calculated column. Any help or tips would be appreciated. 

 

Example:

Install DateLife Expectancy (Years)Replacement Date
10/11/2022        510/11/2027
8/24/2021       1508/24/2036
09/20/2018        709/20/2025
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @ElvirBotic ;

You could also try .

Replacement Date2 = EDATE([Install Date],[Life Expectancy (Years)]*12)

The final show:

vyalanwumsft_0-1665557246545.png


Best Regards,
Community Support Team _ Yalan Wu
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

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @ElvirBotic ;

You could also try .

Replacement Date2 = EDATE([Install Date],[Life Expectancy (Years)]*12)

The final show:

vyalanwumsft_0-1665557246545.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

serpiva64
Solution Sage
Solution Sage

Hi,

you can try this calculated column

Replacement Date = Date(YEAR('Table'[Install Date])+'Table'[Life Expectancy (Years)],MONTH('Table'[Install Date]),day('Table'[Install Date]))
and obtain
serpiva64_0-1665521902676.png

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.