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

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

Reply
Lex23
Regular Visitor

DAX from Excel

 
 

In excel, I can add years to a date to determine at futre date, for example, what is the date 27 years from 09/11/2011 

this gives me 9/11/2038, and I can apply this simple =DATE across a range of dates that I have.

 =DATE(YEAR(A2) + 27, MONTH(A2), DAY(A2))

I have not been able to determine how to do this in DAX for my power bi report.

Any help would be appreciated.

Thank you

MC

2 ACCEPTED SOLUTIONS
Syk
Super User
Super User

You can use the dateadd function which would be something like

Date + 27 days = dateadd(Table[Date],27, day)


https://learn.microsoft.com/en-us/dax/dateadd-function-dax

View solution in original post

Wilson_
Super User
Super User

Hi Lex23,

 

You may be looking for EDATE. The unit of measure is months though so in your example, you would use 27*12.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Wilson_
Super User
Super User

Hi Lex23,

 

You may be looking for EDATE. The unit of measure is months though so in your example, you would use 27*12.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Syk
Super User
Super User

You can use the dateadd function which would be something like

Date + 27 days = dateadd(Table[Date],27, day)


https://learn.microsoft.com/en-us/dax/dateadd-function-dax

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.