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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Mo-PHAT
Helper I
Helper I

DateAdd does not work across year boundaries

Hi,

 

I have found that I cannot use a DateAdd to find a date outside of the current year.

 

Being the 31st Jan 2017 today, if I use (custom column)

 

DATEADD('Data'[Today].[Date],-3,month) It returns a blank value however

 

DATEADD('Data'[Today].[Date],-1,day) correctly returns yesterday.

 

Even DATEADD('Data'[Today].[Date],2,Year) returns a blank value.

 

Surely we should be able to dateadd across the boundary of the year.

 

Thanks

Kirsty

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@Mo-PHAT

 

You need to create a Calendar table which contains the full calendar date if you want to use DATEADD Function.

This blog should also be helpful to you.

 

DateAdd does not work across year boundaries_1.jpg

 

Best Regards,

Herbert

View solution in original post

3 REPLIES 3
elojero
Regular Visitor

 I do Agree. It is ridiculous.

v-haibl-msft
Microsoft Employee
Microsoft Employee

@Mo-PHAT

 

You need to create a Calendar table which contains the full calendar date if you want to use DATEADD Function.

This blog should also be helpful to you.

 

DateAdd does not work across year boundaries_1.jpg

 

Best Regards,

Herbert

Thank you for helping me out.

 

It seems to me that this is pretty ridiculous. I really hope someone fixes this

Helpful resources

Announcements
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.