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
Sean-OReilly
Helper IV
Helper IV

DateAdd not working

Hi

I am using the dateadd function to try and add 56 days to a date and it is working for some of the dates but not for others - i cant figure out why ?

 

Sean-OReilly_1-1605966926537.png

 

 

 

 

1 ACCEPTED SOLUTION
nandukrishnavs
Super User
Super User

@Sean-OReilly 

 

Try this

 

Column ='Table'[Won Date]+56

 


Note: DATEADD() returns a table that contains a column of dates. The result table includes only dates that exist in the dates column.

Regards,
Nandu Krishna

Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍

Proud to be a Super User!


Regards,
Nandu Krishna

View solution in original post

4 REPLIES 4
Sean-OReilly
Helper IV
Helper IV

Thanks @nandukrishnavs 

Simple as that really.

Can you please explain what you mean " DATEADD() returns a table that contains a column of dates. The result table includes only dates that exist in the dates column " ?

 

I am right in saying that if i add 56 days to a date and it comes back to say 31 Nov 2020 - as 31 Nov 2020 doesnt exist then i get a blank?

 

trying to understand where i went wrong and why i would ever use dateadd function

 

@Sean-OReilly 


@Sean-OReilly wrote:

I am right in saying that if i add 56 days to a date and it comes back to say 31 Nov 2020 - as 31 Nov 2020 doesnt exist then i get a blank?


You are correct. 

 

nandukrishnavs_0-1605969959440.png

 


Regards,
Nandu Krishna

nandukrishnavs
Super User
Super User

@Sean-OReilly 

 

Try this

 

Column ='Table'[Won Date]+56

 


Note: DATEADD() returns a table that contains a column of dates. The result table includes only dates that exist in the dates column.

Regards,
Nandu Krishna

Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍

Proud to be a Super User!


Regards,
Nandu Krishna

Was working on a project and came across this issue myself. Ended up on this thread.
The solution:

Column ='Table'[Won Date]+56

 I assume this will add 56 days to the date. I want to add one year to the date. How do I do that? Also, I am adding 1 year so I don't think there is a chance that the result date I am getting is something that does not exist. For example, 20/09/21 is the date I have and after adding one year I am should be getting 20/09/22 but the result column is empty. I am not sure but I think the empty columns are only for the ones where the date is with the year 2021. All the 2020s are fine.

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.