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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.