I think I have not been clear with my conundrum The report I'm trying to create could be 10 years At the moment, it is based on a YEAR(invdate) and this means it automatically goes from 1/1/X to 31/12/Y
On Fri, Oct 24, 2014 at 4:51 PM, Sytze de Boer <[email protected]> wrote: > Dan, I appreciate your help, but I don't understand it. > (My problem, not yours) > > > On Fri, Oct 24, 2014 at 4:44 PM, Dan Covill <[email protected]> > wrote: > >> Been there, done this (but not too often). >> >> Write a function Fyear(date, user), which knows who has funny fiscal >> years and returns the Fiscal Year rather than the calendar year. >> If user is empty it returns the calendar year, of course. >> >> You'll find lots of opportunities to use it! >> >> Dan Covill >> >> > Date: Fri, 24 Oct 2014 16:18:57 +1300 >> > Subject: Date selection >> > From: [email protected] >> > To: [email protected] >> > >> > Friends, I wonder if you can help >> > >> > I have a dozen or so reports which are based on the following routine >> > >> > SELECT client,stockcode,IIF(trantype='I',ttlamount,ttlamount*-1) as >> amount, >> > YEAR(invdate) as year,invdate,sperson, stktype; >> > FROM (lcSource) where trantype $ "CI" INTO table temp >> > >> > When I then base a pivot report on the date Year factor, the columns are >> > per Calendar year. >> > >> > This is ok, except I now have a number of clients whose financial year >> is 1 >> > April to 31 March or other and are asking me to change this. >> > >> > Does anyone have a quick work around for me.? >> >> >> >> >> --- StripMime Report -- processed MIME parts --- >> multipart/alternative >> text/plain (text body -- kept) >> text/html >> --- >> [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cag1nny-cpjc1w-ckbzaejhc--z3dn+mdl19fwh+1qnpyna9...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

