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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JPM_Oslo
New Member

Calculated date returns blank when beyond range of input column

Hello

 

I have some data from 2019/2020 that I am trying to 'time/shift' to 2020/2021.

I am trying to do this with a new column called "projected renewal date" with the formula shown.

 

Problem is, that the formula returns empty when the output is beyond the range of the input date (renewal date)

Below is the result if I add 1 day, or 2 days.

 

Any help much appreciated!

 

JPM_Oslo_0-1599831121424.png

JPM_Oslo_0-1599831372621.png

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JPM_Oslo , If you want add days, You can simply add a number

 

new date = [date]+1

new date = [date]+2

 

dateadd will not cross the boundary of available dates .

For month, year or day , you can also try like

 

new date = date(year([date])+1,month([date]),day([date]))

 

refer : https://community.powerbi.com/t5/Community-Blog/Date-as-Dateadd-Decoding-Date-and-Calendar-5-5-Power...

new date = [date]+2

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@JPM_Oslo , If you want add days, You can simply add a number

 

new date = [date]+1

new date = [date]+2

 

dateadd will not cross the boundary of available dates .

For month, year or day , you can also try like

 

new date = date(year([date])+1,month([date]),day([date]))

 

refer : https://community.powerbi.com/t5/Community-Blog/Date-as-Dateadd-Decoding-Date-and-Calendar-5-5-Power...

new date = [date]+2

Thanks for such a quick response!

That solves the immediate problem 🙂 

 

Is there a reason what I was trying doesn't work?

...aaaand your second post answered my other question.

 

Thanks so much

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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