I have the following formula in Report Select Expert to automatically capture quarterly results without a date prompt (excuse month format, that's how it is on the database for whatever reason)
if month(CurrentDate) in [1.00 to 3.00] then month({Transaction_History.Post_Date}) in [10.00 to 12.00 ] else
if month(CurrentDate) in [4.00 to 6.00] then month({Transaction_History.Post_Date}) in [1.00 to 3.00 ] else
if month(CurrentDate) in [7.00 to 9.00] then month({Transaction_History.Post_Date}) in [4.00 to 6.00 ] else
if month(CurrentDate) in [10.00 to 12.00] then month({Transaction_History.Post_Date}) in [7.00 to 9.00 ]
The formula works fine except that it gives me every quarter for every year. How can I insert current year in the formula except when month in [1 to 3] in which I will need the previous year? Should I do a minus 3 months kind of formula?
if month(CurrentDate) in [1.00 to 3.00] then month({Transaction_History.Post_Date}) in [10.00 to 12.00 ] else
if month(CurrentDate) in [4.00 to 6.00] then month({Transaction_History.Post_Date}) in [1.00 to 3.00 ] else
if month(CurrentDate) in [7.00 to 9.00] then month({Transaction_History.Post_Date}) in [4.00 to 6.00 ] else
if month(CurrentDate) in [10.00 to 12.00] then month({Transaction_History.Post_Date}) in [7.00 to 9.00 ]
The formula works fine except that it gives me every quarter for every year. How can I insert current year in the formula except when month in [1 to 3] in which I will need the previous year? Should I do a minus 3 months kind of formula?