Reply
Highlighted
Super User
Posts: 7,614
Registered: ‎07-11-2015

Dates Prior to 1900

Useful if you need it (which probably won't be that often). This method helps handle the fact that the DATE, FIRSTDATE and LASTDATE functions do weird things with dates prior to 1900.

 

MyYear = IF(YEAR(FIRSTDATE(Table[Date]))>3000,YEAR(FIRSTDATE(Table[Date])-1900,YEAR(FIRSTDATE(Table[Date])))








Did I answer your question? Mark my post as a solution!



Proud to be a Datanaut!