Solved

calculate weekly average

Posted on 2008-10-04
4
1,177 Views
Last Modified: 2012-05-05
Hi
I am trying to calculate weekly averages of hours worked per employee

My data structure is as following

employee Table

empId
empName


service table
serviceId
empId
DateComplete
BillableHours

Report structure should be like this:

GH1 - Employee name     Average Weekly Hours
   GH2 - Week of (based on DateComplete )  - Total hours (sum of BillableHours)
      D - suppressed - no drill down


I have all done except  Average Weekly Hours

Can anybody point me to the right direction?
0
Comment
Question by:Michael_D
  • 2
  • 2
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 22642460
One way to try is a formula like

Sum({BillableHours},{EmployeeId}) / DistinctCount({DateCpmplete},{EmployeeName})

mlmcc
0
 
LVL 13

Author Comment

by:Michael_D
ID: 22642487
Brilliant!!!
Working perfect!
Just out of curiosity you said the this is "One Way to try ..."
What are the other possibilities?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22642501
You could use running totals or formulas but those methods wouldn't give you the ability to put it in the group header.

mlmcc
0
 
LVL 13

Author Comment

by:Michael_D
ID: 22642609
Exactly - that what i was struggling with ...
I tried to use Running totals with no luck.

Thank you again!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question