Forum Discussion

Greg_Deckler's avatar
Greg_Deckler
Icon for Community Champion rankCommunity Champion
10 years ago

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])))
No RepliesBe the first to reply