I have the below formula in select expert to get last full quarter data automatically , however as the report is downloading, you can see that it is going through every single record (0 of 250000). As a result, when the report gets to the web site, the processing time is not acceptable. Any suggestions?
(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 ] ) and
if month(CurrentDate) in [1.00 to 3.00]
then Year({Transaction_History.Post_Date}) = Year(CurrentDate)- 1
else
Year({Transaction_History.Post_Date}) = Year(CurrentDate) and
(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 ] ) and
if month(CurrentDate) in [1.00 to 3.00]
then Year({Transaction_History.Post_Date}) = Year(CurrentDate)- 1
else
Year({Transaction_History.Post_Date}) = Year(CurrentDate) and