Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fiscal Year

Status
Not open for further replies.

wrburch

Vendor
Joined
Aug 7, 2012
Messages
9
Location
US
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
 
Here is a function I use for Fiscal Year


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,'####') ;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top