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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Staregirl
Helper I
Helper I

Using DATEADD with full date table - 1900 to 9999

Hi all

 

I am trying to use DATEADD with my Date table, but my Date table runs from 01/01/1900 to 31/12/1999

 

So I think if I try DATEADD('Date'[Date], -1, YEAR), for example, it returns "An invalid numeric representation of a date value was encountered" because if you take one year away from 1900 you get 1899? Which isn't valid?

 

I feel like MAX and MIN may come into play.

 

Could be something else but I'm trying everything at this point!

 

Thanks!

3 REPLIES 3
amitchandak
Super User
Super User

@Staregirl , Try like

 

Date(year('Date'[Date])-1, month('Date'[Date]), day('Date'[Date]))

 

refer: https://www.youtube.com/watch?v=9qiRivlBv8w

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry Amit but this does not answer my question 😞

Staregirl
Helper I
Helper I

Update - I created a VAR that was EDATE([MeasureForMaxDate], -12)

 

That returns 31/01/9998

However, if I add 12 months instead, it throws a 'result is too large or too small' error.

BUT if I do the same with the MIN date, it returns 01/01/1899 - which I thought should throw the same error but I guess it's still a 4 digit year?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors