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
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
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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.