Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# calculate weekly average

Posted on 2008-10-04
Medium Priority
1,190 Views
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
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
• 2
• 2

LVL 101

Accepted Solution

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

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

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

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

Thank you again!
0

## Featured Post

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
###### Suggested Courses
Course of the Month11 days, 6 hours left to enroll