Hi all,
I'm using Crystal 2008 to create a report. The reports has one-level grouping by user name. Each user may have multiple tasks and each task has a duration in hours if it is complete. The details about those tasks and durations will be shown in drill-down. In the Preview tab, for each row I need to display: user name and average duration of tasks that have been done by the user. Note that the average duration only counts for tasks that have been done.
So my questions is: is there a way to group by users and sort by average task duration? I guess Group Sort Expert might be helpful but cannot find the formula for Average Task Duration there. I think it may because I'm using both Sum and Count in the formula for average duration. The formula is like this:
if Sum ({@TaskDone}, {%User})>0 then Sum({@Duration},{%User})/Sum ({@TaskDone}, {%User})
else -1
Any suggestions? Thanks a lot in advance!
I'm using Crystal 2008 to create a report. The reports has one-level grouping by user name. Each user may have multiple tasks and each task has a duration in hours if it is complete. The details about those tasks and durations will be shown in drill-down. In the Preview tab, for each row I need to display: user name and average duration of tasks that have been done by the user. Note that the average duration only counts for tasks that have been done.
So my questions is: is there a way to group by users and sort by average task duration? I guess Group Sort Expert might be helpful but cannot find the formula for Average Task Duration there. I think it may because I'm using both Sum and Count in the formula for average duration. The formula is like this:
if Sum ({@TaskDone}, {%User})>0 then Sum({@Duration},{%User})/Sum ({@TaskDone}, {%User})
else -1
Any suggestions? Thanks a lot in advance!