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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Shelley
Post Prodigy
Post Prodigy

DATEADD Function works for some cells, but not others?

I am trying to use the DATEADD function. Ideally, I'd like to add 12 months, and subtract one day, so if anyone can help me with the formula for this, I'd really appreciate it.

 

For now, let's consider the formula MOU_EndDate = DATEADD(Analytics[MOU_Date],12,MONTH). Why does this work for some cells and not others (blanks) as shown? Both columns are set to Date format. ANy help is greatly appreciated. Thanks!

 

CaptureMOU.PNG

 

1 ACCEPTED SOLUTION
Shelley
Post Prodigy
Post Prodigy

I don't know why this wasn't working, but I figured out another way to do what I wanted: MOU_EndDate = EOMONTH(Analytics[MOU_Date],11) - and it works for all cells.

CaptureMOU2.PNG

View solution in original post

2 REPLIES 2
Thiyagu
Helper III
Helper III

I think dateadd works only if there is a date in a date table. Try below

Capture_2.JPG

 

 Column = datecheck[Column1]+365..

 

 

Shelley
Post Prodigy
Post Prodigy

I don't know why this wasn't working, but I figured out another way to do what I wanted: MOU_EndDate = EOMONTH(Analytics[MOU_Date],11) - and it works for all cells.

CaptureMOU2.PNG

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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