I am using CR XI I have some call center data arranged in group hierarchy I want o show the maximum call length and convert to HH MM SS I have no problem with the data and grand total but cant seem to show the max by each group
To prove the figs I have the data and ahave done a max by each group and there is no problem. Its only when I want to convert to the HH MM SS format. It keeps coming up with 'You must have a group that matches this field' - but I have!
Typicall I have formula below :
WhilePrintingRecords;
StringVar Hours1;
StringVar Minutes1;
StringVar Seconds1;
NumberVar maxofmaxansapp;
maxofmaxansapp:=Maximum({dApplicationStat.MaxCallsAnsDelay});
If maxofmaxansapp < 0 Then
"Cannot have a time less than zero"
Else
(Hours1:=ToText(Truncate(maxofmaxansapp/3600),0);
Minutes1:=ToText(Truncate(Remainder(maxofmaxansapp,3600)/60),0);
Seconds1:=ToText(Remainder(Remainder(maxofmaxansapp,3600),60),0);
//Display the time formatted.
(if length(Hours1) < 2 then '0') + Hours1 + ":" +
["0",""][length(Minutes1)] + Minutes1 + ":" +
["0",""][length(Seconds1)] + Seconds1
)
For the part -> maxofmaxansapp:=Maximum ({dApplicationStat.MaxCallsAnsDelay});
I am trying to put my new group in eg maxofmaxansapp:=Maximum(Maximum ({dApplicationStat.MaxCallsAnsDelay}, {dApplicationStat.Application}));
To prove the figs I have the data and ahave done a max by each group and there is no problem. Its only when I want to convert to the HH MM SS format. It keeps coming up with 'You must have a group that matches this field' - but I have!
Typicall I have formula below :
WhilePrintingRecords;
StringVar Hours1;
StringVar Minutes1;
StringVar Seconds1;
NumberVar maxofmaxansapp;
maxofmaxansapp:=Maximum({dApplicationStat.MaxCallsAnsDelay});
If maxofmaxansapp < 0 Then
"Cannot have a time less than zero"
Else
(Hours1:=ToText(Truncate(maxofmaxansapp/3600),0);
Minutes1:=ToText(Truncate(Remainder(maxofmaxansapp,3600)/60),0);
Seconds1:=ToText(Remainder(Remainder(maxofmaxansapp,3600),60),0);
//Display the time formatted.
(if length(Hours1) < 2 then '0') + Hours1 + ":" +
["0",""][length(Minutes1)] + Minutes1 + ":" +
["0",""][length(Seconds1)] + Seconds1
)
For the part -> maxofmaxansapp:=Maximum ({dApplicationStat.MaxCallsAnsDelay});
I am trying to put my new group in eg maxofmaxansapp:=Maximum(Maximum ({dApplicationStat.MaxCallsAnsDelay}, {dApplicationStat.Application}));