I have written a repot that is looking at turnaround times. I wrote a formula to calculate the TAT and it works.
datetimevar CDT:={URTJ_CBPhoneResult_View.CallbackDateODBC}+{URTJ_CBPhoneResult_View.CallbackTimeODBC};
datetimevar PDT:={URTJ_CBPhoneResult_View.PhoneDateODBC}+{URTJ_CBPhoneResult_View.PhoneTimeODBC};
numbervar callphone:=datediff("n",CDT,PDT);
if callphone <=30 then "<30m" else
if callphone >30 then
if callphone <=60 then totext(callphone,0,"") & "m"
else totext(int(callphone/60),0,"") & "h" & " " & totext(remainder(callphone,60),0,"") & "m"
The first report has two columns one for the <30 mins and the other for >30mins which displays the actual time. I want to break this down further and display the entries from 31-45 mins and from 46-60. So far I have not been able to get this to work. So I think it may be in the above formula. Any thoughts or suggestions?
Thanks... Rosy1
datetimevar CDT:={URTJ_CBPhoneResult_View.CallbackDateODBC}+{URTJ_CBPhoneResult_View.CallbackTimeODBC};
datetimevar PDT:={URTJ_CBPhoneResult_View.PhoneDateODBC}+{URTJ_CBPhoneResult_View.PhoneTimeODBC};
numbervar callphone:=datediff("n",CDT,PDT);
if callphone <=30 then "<30m" else
if callphone >30 then
if callphone <=60 then totext(callphone,0,"") & "m"
else totext(int(callphone/60),0,"") & "h" & " " & totext(remainder(callphone,60),0,"") & "m"
The first report has two columns one for the <30 mins and the other for >30mins which displays the actual time. I want to break this down further and display the entries from 31-45 mins and from 46-60. So far I have not been able to get this to work. So I think it may be in the above formula. Any thoughts or suggestions?
Thanks... Rosy1