Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe 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.
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])))