Solved

calculate weekly average

Posted on 2008-10-04
4
1,183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

630 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