Hello,
I am using CRXI on Oracle 8
Here is my problem. I am trying to calculate the difference between two dates from the same field. If a Rep has to return a plan back to a customer it is giving a code To Applicant(i.e. agency>APP or agency-CALL) and the date is entered. When a plan is returned from the applicant, then the following code is enter From Applicant(agency<APP).
Here is how the data looks:
BLC1 200402709 S-SWRC<APP 01/03/2005 0.00
BLC1 200402709 S-SWRC<APP
BLC1 200402709 S-SWRC>APP 12/29/2004 0.00
BLC1 200402709 S-SWRC>APP
I wrote two formulas @TO and @FROM
@TO
IF not isnull({PER_ACTION.ACN_CODE}) or {PER_ACTION.ACN_CODE}= "S-SWRC>APP"
then
{PER_ACTION.PER_ACN_COMPL_DATE}
@FROM
if not isnull({PER_ACTION.ACN_CODE}) or {PER_ACTION.ACN_CODE}="S-SWRC<APP"
then
{PER_ACTION.PER_ACN_COMPL_DATE}
then I have another formula called @CalAppTime which contains the following:
{@FROM}-{@TO}
The results I get is 0 and the answer should be 5 days in this case.
How can get these dates to calculate? Also, I will need to average the totals also
Thanks
Greg
I am using CRXI on Oracle 8
Here is my problem. I am trying to calculate the difference between two dates from the same field. If a Rep has to return a plan back to a customer it is giving a code To Applicant(i.e. agency>APP or agency-CALL) and the date is entered. When a plan is returned from the applicant, then the following code is enter From Applicant(agency<APP).
Here is how the data looks:
BLC1 200402709 S-SWRC<APP 01/03/2005 0.00
BLC1 200402709 S-SWRC<APP
BLC1 200402709 S-SWRC>APP 12/29/2004 0.00
BLC1 200402709 S-SWRC>APP
I wrote two formulas @TO and @FROM
@TO
IF not isnull({PER_ACTION.ACN_CODE}) or {PER_ACTION.ACN_CODE}= "S-SWRC>APP"
then
{PER_ACTION.PER_ACN_COMPL_DATE}
@FROM
if not isnull({PER_ACTION.ACN_CODE}) or {PER_ACTION.ACN_CODE}="S-SWRC<APP"
then
{PER_ACTION.PER_ACN_COMPL_DATE}
then I have another formula called @CalAppTime which contains the following:
{@FROM}-{@TO}
The results I get is 0 and the answer should be 5 days in this case.
How can get these dates to calculate? Also, I will need to average the totals also
Thanks
Greg