gennaroalpha7
Technical User
Hi,
In Crystal Syntax there is no Date Range function for the last full year.
I want to run my (last full year) report with data from 1 year past i.e., the report as of end of February 2013 would contain all the records from February 2012 through February 2013. If I run the report today 3/5/2013, it would contain data from today to 3/5/2012. If I run it 2 months from now, 5/10/2013, it would contain data from 5/10/2013 to 5/10/2013...
This is what I have so far...And, for some reason my "CallLog.RecvdDate" field is pulling data from 2 years back. How can I correct it to pull data from only one year back?
1. Report - Selection Formulas - Record
{CallLog.RecvdDate} in [{@StartDate} to {@EndDate}] and
{CallLog.KeyWord} in ["BOTW.COM", "Mobile Banking", "OBS", "OBS BOTW"]
2. Field Explorer - Formula Fields
StartDate - ToText(dateserial(year(currentdate)-1,month(currentdate)+1,1), 'M/dd/yyyy')
EndDate - ToText((dateserial(year(currentdate),month(currentdate)+1,1)-1), 'M/dd/yyyy')
Thanks in advance for your help.
Alpha7
In Crystal Syntax there is no Date Range function for the last full year.
I want to run my (last full year) report with data from 1 year past i.e., the report as of end of February 2013 would contain all the records from February 2012 through February 2013. If I run the report today 3/5/2013, it would contain data from today to 3/5/2012. If I run it 2 months from now, 5/10/2013, it would contain data from 5/10/2013 to 5/10/2013...
This is what I have so far...And, for some reason my "CallLog.RecvdDate" field is pulling data from 2 years back. How can I correct it to pull data from only one year back?
1. Report - Selection Formulas - Record
{CallLog.RecvdDate} in [{@StartDate} to {@EndDate}] and
{CallLog.KeyWord} in ["BOTW.COM", "Mobile Banking", "OBS", "OBS BOTW"]
2. Field Explorer - Formula Fields
StartDate - ToText(dateserial(year(currentdate)-1,month(currentdate)+1,1), 'M/dd/yyyy')
EndDate - ToText((dateserial(year(currentdate),month(currentdate)+1,1)-1), 'M/dd/yyyy')
Thanks in advance for your help.
Alpha7