I need to group 10 years of data by fiscal year using just a date field (CreatedDate). FY is 10-1 thru 9-30 for years 2005-2014. Is there an easy formula out there? WRB
Function (datevar Tdate)
// WhatFY - What Fiscal Year does this date fall in
// Input: Tdate, the date to be tested
// Output: Fiscal year as a 4 digit string
// Example: WhatFY(2/3/2003) = 2003 WhatFY(10/4/2003) = 2004
if month(Tdate) < 7 then totext(year(Tdate),'####') else totext(year(Tdate)+1,'####') ;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.