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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ThomasWeppler
Impactful Individual
Impactful Individual

How to add two years to today

Hi Power BI community

I want to add 2 years to today in DAX.
My Dax is like this
Two years in the future = Today() + 730

 

My problem is that this DAX doesn't respect leap years.
Is there someway to change the DAX so it adds years instead of days?

All help is appriciated


1 ACCEPTED SOLUTION
AndrewPF
Helper V
Helper V

Use the DATEADD function: 

New Date = DATEADD('Table Name'[Old Date], +2 year)

see also: 

https://dax.guide/dateadd/

View solution in original post

3 REPLIES 3
Iden
Frequent Visitor

I did this

DateTable =
CALENDAR(DATE(2020, 1, 1), DATE(YEAR(TODAY())+2,12,31))
AndrewPF
Helper V
Helper V

Use the DATEADD function: 

New Date = DATEADD('Table Name'[Old Date], +2 year)

see also: 

https://dax.guide/dateadd/

Thanks for the solution.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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