Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Fiscal Year To Date Formula Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
MellieD
Newbie
Newbie
Avatar

Joined: 03 Dec 2012
Location: United States
Online Status: Offline
Posts: 16
Quote MellieD Replybullet Posted: 06 Dec 2012 at 5:57am
Originally posted by DBlank

Sorry, my formula was to be used in the select expert to limit your data to only rows that would be last fy to date and this fy to date. Hence the returning of true or false.
If you want to get specific values the easiest way is to make two formulas out of either side of the or statement.
//last fy
If {Transaction.Date} in date(year(currentdate)-(if month(currentdate)<10 then 2 else 1),10,1) to dateadd('yyyy',-(if month(currentdate)<10 then 2 else 1),currentdate) then table.amount else 0
Now sum this to get your total
Sum(@last fy)

//this fy
If {Transaction.Date} in date(year(currentdate)-(if month(currentdate)<10 then 1 else 0),10,1) to currentdate then table.amount else 0
Now sum this to get your other total
Sum(@this fy)


Thank you so much for the help! They appear to be the formulas I was looking for, still tweaking them a bit as the numbers dont match up quite right, but i think that is an issue with my database. I appreciate the time you took to give me a hand. Have a great day! Big%20smile
IP IP Logged
<< Prev  Page  of 2
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