Can someone please tell me why the following formula field is unavailable for use in a cross tab or a chart? Also, is there a way for it to be changed so it is available? Thanks for any help or suggestions!
Thank you!
Paul
Code:
WhilePrintingRecords;
StringVar Hours1;
StringVar Minutes1;
StringVar Seconds1;
NumberVar avgtalktime;
avgtalktime:= if {wAgentBySkillsetStat.CallsAnswered} = 0 then 0 else
Sum ({wAgentBySkillsetStat.TalkTime}, {wAgentBySkillsetStat.Timestamp}, "weekly")/Sum ({wAgentBySkillsetStat.CallsAnswered}, {wAgentBySkillsetStat.Timestamp}, "weekly");
If avgtalktime < 0 Then
"Cannot have a time less than zero"
Else
(Hours1:=ToText(Truncate(avgtalktime/3600),0);
Minutes1:=ToText(Truncate(Remainder(avgtalktime,3600)/60),0);
Seconds1:=ToText(Remainder(Remainder(avgtalktime,3600),60),0));
//Display the time formated.
(if length(Hours1) < 2 then '0') + Hours1 + ":" +
["0",""][length(Minutes1)] + Minutes1 + ":" +
["0",""][length(Seconds1)] + Seconds1
Thank you!
Paul