Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Bespoke Financial Year Function Post Reply Post New Topic
Author Message
dibblejon
Newbie
Newbie


Joined: 05 Jan 2011
Location: United Kingdom
Online Status: Offline
Posts: 32
Quote dibblejon Replybullet Topic: Bespoke Financial Year Function
    Posted: 10 Aug 2011 at 5:59am

Hi

My companies financial year runs from 01/07 to 30/06
 
Is there an easy way I can setup this up so that I can subtotal reports by year but between these months?
 
Many thanks
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 Aug 2011 at 6:07am
one way ...
you can create a formula to convert the date to FYxx tehn use that formula field for grouping and sub totals or running totals
'FY' +
(if month(datefield) in 1 to 6 then totext(year(datefield)-1,0,"") else totext(datefield,"yy"))


Edited by DBlank - 10 Aug 2011 at 6:08am
IP IP Logged
dibblejon
Newbie
Newbie


Joined: 05 Jan 2011
Location: United Kingdom
Online Status: Offline
Posts: 32
Quote dibblejon Replybullet Posted: 10 Aug 2011 at 11:31pm
Hi
 
Thanks for taking the time to help.
 
This is nearly what I need. This returns 09,2009 for a FY or 10,2010 etc...
 
How can I amend to just display 2009,2010?
 
And is there a way to save the formual in crystal so it can be used over and over?
 
 
IP IP Logged
dibblejon
Newbie
Newbie


Joined: 05 Jan 2011
Location: United Kingdom
Online Status: Offline
Posts: 32
Quote dibblejon Replybullet Posted: 10 Aug 2011 at 11:42pm
Please ignore
 
Have sorted. Just added another formula that extracted the last two digits in the field created.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.