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
JMSNYC
Helper III
Helper III

SUBSTRACT DATE ISSUES

Hi.

 

I need to subtract an integer number of months from an existing date (e.g., -6 month from April, 1 2019).

 

Issue is: I have a blank cell using DATEADD(Date(2019,04,01),-6,MONTH), because date should be November, 1, 2018. It seems that date subtraction works if year does not change.

 

Am I missing something ?

 

Thanks for your help.

2 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

=EDATE(Date(2019,04,01),-6)


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

AWESOME !!! Thank you so Much.

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

=EDATE(Date(2019,04,01),-6)


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

AWESOME !!! Thank you so Much.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
HotChilli
Super User
Super User

Usually this is due to the end result of the dateadd operation not existing as a date in the model so that's my educated guess.

From documentation : The result table includes only dates that exist in the dates column

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.