Load TempDate AS DATE_KEY, Year(TempDate) As Year, Month(TempDate) As Month, Day (TempDate) as Day,
Year(TempDate) + If(Month(TempDate)>=$(vFM_NO), 1, 0) as FinYear, Mod(Month(TempDate)-$(vFM_NO), 12)+1 as FinMonth, 'Q'&ceil((Mod(Month(TempDate)-$(vFM_NO), 12)+1)/3) as FY_Qrter,