Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

calculate weekly average

Posted on 2008-10-04
4
Medium Priority
?
1,195 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 101

Accepted Solution

by:
mlmcc earned 2000 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 101

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Screencast - Getting to Know the Pipeline

824 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