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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.