gennaroalpha7
Technical User
Hello -
Pete, has helped me derive this formula and it's working great. But, I would like to sum each groups date/time totals. My formula for summing date/time is:
@ResolutionTime
I have created, or trying to, another formula for summing each groups date/time totals called @SumDateTime:
When I check for errors it gives me the following...'A number field or currency amount field is required here' which I have highlighted.
Please help with this error. Do I need to convert the field or is the formula not considered a field?
Thanks for your help.
Alpha7
Pete, has helped me derive this formula and it's working great. But, I would like to sum each groups date/time totals. My formula for summing date/time is:
@ResolutionTime
Code:
WhilePrintingRecords;
Local NumberVar seconds := 0;
If IsDate({CallLog.ClosedDate}) and
IsDate({CallLog.RecvdDate}) and
IsTime({CallLog.ClosedTime}) and
IsTime({CallLog.RecvdTime})
Then seconds := DateDiff("s", DateTime(Date(Trim({CallLog.RecvdDate})), Time({CallLog.RecvdTime})), DateTime(Date(Trim({CallLog.ClosedDate})), Time({CallLog.ClosedTime})))
Else seconds := 0;
ToText(Truncate(seconds/3600), '#') + ' hour(s), ' + ToText(Remainder(seconds, 3600)/60, '#.##') + ' minute(s)'
I have created, or trying to, another formula for summing each groups date/time totals called @SumDateTime:
Code:
Sum[highlight #FCE94F]({@@ResolutionTime},[/highlight] {Asgnmnt.GroupName})
When I check for errors it gives me the following...'A number field or currency amount field is required here' which I have highlighted.
Please help with this error. Do I need to convert the field or is the formula not considered a field?
Thanks for your help.
Alpha7