PC Review


Reply
Thread Tools Rate Thread

Calculate Average In Report?

 
 
Kevin
Guest
Posts: n/a
 
      8th Dec 2006
I am trying to create a DB that calculates employee production averages
on a report. My table which is called 't_production' includes the
following fields:

ID, Date, Category, Goal, Units, Hours

Information is entered into this table via a form called
'f_production'.

I have then created a report called 'r_production' which includes the
following fields:

ID, Date, Category, Goal, Units, Hours, Average

In the Average field I've experimented with various formulas however
my data always comes back incorrect. To calculate my average I'm
simply taking (Units/Hours)*10.
For example:

ID Date Category Goal Units Hours Average
0001 12/05/06 Hard Home 90 80 8 100

(80 Units/8Hours)*10= 100%

When I begin to add multiple records the data seems to get lumped
together into one sum and the averages do not correspond. For Example:

ID Date Category Goal Units Hours Average
0001 12/05/06 Hard Home 100 800 8 135
0001 12/05/06 Shoes 65 550 6 135
0002 12/05/06 Soft Home 75 780 8 135
0003 12/05/06 Hard Home 95 1000 4 135

Can someone point me in the right direction? Is there a formula that I
can include in the Average field on my report that will fix this? Am I
going about this all wrong? Should I be calculating the average within
my table first? If so, how do I do that?

 
Reply With Quote
 
 
 
 
Brian
Guest
Posts: n/a
 
      8th Dec 2006
is your report based on a query? I would set up a query, and have it
be based on the one table, as well as create a column named Average.
The formula for this column should be:

Average: [Units]/[Hours]

Set the format of this field to Percent and it should work.

On Dec 8, 8:10 am, "Kevin" <kpschroe...@gmail.com> wrote:
> I am trying to create a DB that calculates employee production averages
> on a report. My table which is called 't_production' includes the
> following fields:
>
> ID, Date, Category, Goal, Units, Hours
>
> Information is entered into this table via a form called
> 'f_production'.
>
> I have then created a report called 'r_production' which includes the
> following fields:
>
> ID, Date, Category, Goal, Units, Hours, Average
>
> In the Average field I've experimented with various formulas however
> my data always comes back incorrect. To calculate my average I'm
> simply taking (Units/Hours)*10.
> For example:
>
> ID Date Category Goal Units Hours Average
> 0001 12/05/06 Hard Home 90 80 8 100
>
> (80 Units/8Hours)*10= 100%
>
> When I begin to add multiple records the data seems to get lumped
> together into one sum and the averages do not correspond. For Example:
>
> ID Date Category Goal Units Hours Average
> 0001 12/05/06 Hard Home 100 800 8 135
> 0001 12/05/06 Shoes 65 550 6 135
> 0002 12/05/06 Soft Home 75 780 8 135
> 0003 12/05/06 Hard Home 95 1000 4 135
>
> Can someone point me in the right direction? Is there a formula that I
> can include in the Average field on my report that will fix this? Am I
> going about this all wrong? Should I be calculating the average within
> my table first? If so, how do I do that?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate average at detail level on report DJ Microsoft Access 6 3rd Apr 2009 08:26 PM
How do I calculate an average if =?Utf-8?B?bGFwYXJr?= Microsoft Excel Misc 2 27th Jun 2007 08:00 PM
If/Then calculate the average =?Utf-8?B?THlubko=?= Microsoft Excel Worksheet Functions 5 3rd Jan 2006 10:24 PM
How do I calculate an average per hour field in an Access report? =?Utf-8?B?UEs=?= Microsoft Access Reports 2 17th Aug 2005 05:12 AM
Calculate average... Mr-Wizard Microsoft Excel Worksheet Functions 5 14th Apr 2004 01:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:07 PM.