Group by month, on one or other date. Do a pair of running totals, summing the number of cases and the time spent on cases with priority="very high" and re-setting for each month.
In the month-group footer, divide the sum by the count.
You could also do it by grouping 'very high' cases within the month.
For finding 'time spend', use
Code:
DateDiff ("d", {date1}, {date2})
That assumes you are counting days. For 'hours', use "h" rather than "d".
PS. It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)