Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10473

Re: Run Quarterly Report

$
0
0

okay...try a record selection like this then...

 

{CallLog.RecvdDate} >= totext(date
(
year(dateadd("q", -1, currentdate)),
if month(currentdate) in [1,2,3] then 10 else
if month(currentdate) in [4,5,6] then 01 else
if month(currentdate) in [7,8,9] then 04 else
if month(currentdate) in [10,11,12] then 07,
01
),'yyyy-MM-dd')

 

and

 

{CallLog.RecvdDate} <= totext(date
(
year(dateadd("q", -1, currentdate)),
if month(currentdate) in [1,2,3] then 12 else
if month(currentdate) in [4,5,6] then 03 else
if month(currentdate) in [7,8,9] then 06 else
if month(currentdate) in [10,11,12] then 09
,

if month(currentdate) in [1,2,3] then day(dateadd("d", -1, date(year(currentdate), 01,01))) else
if month(currentdate) in [4,5,6] then day(dateadd("d", -1, date(year(currentdate), 04,01))) else
if month(currentdate) in [7,8,9] then day(dateadd("d", -1, date(year(currentdate), 07,01))) else
if month(currentdate) in [10,11,12] then day(dateadd("d", -1, date(year(currentdate), 10,01)))
),'yyyy-MM-dd')


Viewing all articles
Browse latest Browse all 10473

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>