473,405 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Help with AVG Function

I am using the AVG function in a report to show the average number of
cases picked per line item over a given period of time. For instance
the user might want the info from 07/16/07 to 07/20/07.

Can you make the AVG function only use the records that have data in
them. For instance there might be one day between 07/16/07 and
07/20/07 that nothing was picked so the number of cases per line item
would be zero and I do not want Access to calculate that zero amount
in the overall average due to the fact that the averages will show
lower than they actually are on the report.

All help is greatly appreciated.

Jul 26 '07 #1
5 3462
Suggest doing it a different way ---

Create a query that includes your date, line item and cases picked. Put the
following criteria in the date field:
Between [Enter Info Start Date] And [Enter Info End Date]
With the query in design view, click on the Sigma button (looks like capital
E) in the menu at the top of the screen. Then under cases picked, change
Group By to Avg.
When you run the query you will get the average cases picked in the time
period you entered. Access is smart enough to ignore days with no data when
calculating average.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com

"lucky33" <ki*******@bellsouth.netwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>I am using the AVG function in a report to show the average number of
cases picked per line item over a given period of time. For instance
the user might want the info from 07/16/07 to 07/20/07.

Can you make the AVG function only use the records that have data in
them. For instance there might be one day between 07/16/07 and
07/20/07 that nothing was picked so the number of cases per line item
would be zero and I do not want Access to calculate that zero amount
in the overall average due to the fact that the averages will show
lower than they actually are on the report.

All help is greatly appreciated.

Jul 26 '07 #2
If I remember correctly(but I could be wrong) doesn't Access's AVG
function only throw out 'Null' values and so it will count a value of
zero for calculating the average. The original question(to me)
suggested that they had zero's as data values.
bobh.

On Jul 26, 3:12 pm, "Steve" <So...@private.emailaddresswrote:
Suggest doing it a different way ---

Create a query that includes your date, line item and cases picked. Put the
following criteria in the date field:
Between [Enter Info Start Date] And [Enter Info End Date]
With the query in design view, click on the Sigma button (looks like capital
E) in the menu at the top of the screen. Then under cases picked, change
Group By to Avg.
When you run the query you will get the average cases picked in the time
period you entered. Access is smart enough to ignore days with no data when
calculating average.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resou...@pcdatasheet.com

"lucky33" <kimbal...@bellsouth.netwrote in message

news:11**********************@q75g2000hsh.googlegr oups.com...
I am using the AVG function in a report to show the average number of
cases picked per line item over a given period of time. For instance
the user might want the info from 07/16/07 to 07/20/07.
Can you make the AVG function only use the records that have data in
them. For instance there might be one day between 07/16/07 and
07/20/07 that nothing was picked so the number of cases per line item
would be zero and I do not want Access to calculate that zero amount
in the overall average due to the fact that the averages will show
lower than they actually are on the report.
All help is greatly appreciated.- Hide quoted text -

- Show quoted text -

Jul 26 '07 #3
Yes, that's correct!

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com


"bobh" <b5******@verizon.netwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
If I remember correctly(but I could be wrong) doesn't Access's AVG
function only throw out 'Null' values and so it will count a value of
zero for calculating the average. The original question(to me)
suggested that they had zero's as data values.
bobh.

On Jul 26, 3:12 pm, "Steve" <So...@private.emailaddresswrote:
>Suggest doing it a different way ---

Create a query that includes your date, line item and cases picked. Put
the
following criteria in the date field:
Between [Enter Info Start Date] And [Enter Info End Date]
With the query in design view, click on the Sigma button (looks like
capital
E) in the menu at the top of the screen. Then under cases picked, change
Group By to Avg.
When you run the query you will get the average cases picked in the time
period you entered. Access is smart enough to ignore days with no data
when
calculating average.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resou...@pcdatasheet.com

"lucky33" <kimbal...@bellsouth.netwrote in message

news:11**********************@q75g2000hsh.googleg roups.com...
>I am using the AVG function in a report to show the average number of
cases picked per line item over a given period of time. For instance
the user might want the info from 07/16/07 to 07/20/07.
Can you make the AVG function only use the records that have data in
them. For instance there might be one day between 07/16/07 and
07/20/07 that nothing was picked so the number of cases per line item
would be zero and I do not want Access to calculate that zero amount
in the overall average due to the fact that the averages will show
lower than they actually are on the report.
All help is greatly appreciated.- Hide quoted text -

- Show quoted text -


Jul 26 '07 #4
On Jul 26, 4:07 pm, bobh <b5o4b...@verizon.netwrote:
If I remember correctly(but I could be wrong) doesn't Access's AVG
function only throw out 'Null' values and so it will count a value of
zero for calculating the average. The original question(to me)
suggested that they had zero's as data values.
bobh.

On Jul 26, 3:12 pm, "Steve" <So...@private.emailaddresswrote:
Suggest doing it a different way ---
Create a query that includes your date, line item and cases picked. Put the
following criteria in the date field:
Between [Enter Info Start Date] And [Enter Info End Date]
With the query in design view, click on the Sigma button (looks like capital
E) in the menu at the top of the screen. Then under cases picked, change
Group By to Avg.
When you run the query you will get the average cases picked in the time
period you entered. Access is smart enough to ignore days with no data when
calculating average.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resou...@pcdatasheet.com
"lucky33" <kimbal...@bellsouth.netwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>I am using the AVG function in a report to show the average number of
cases picked per line item over a given period of time. For instance
the user might want the info from 07/16/07 to 07/20/07.
Can you make the AVG function only use the records that have data in
them. For instance there might be one day between 07/16/07 and
07/20/07 that nothing was picked so the number of cases per line item
would be zero and I do not want Access to calculate that zero amount
in the overall average due to the fact that the averages will show
lower than they actually are on the report.
All help is greatly appreciated.- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -
that is correct we do have zero's as the data values

Jul 26 '07 #5
Hi,
Just insure that your report's source has Null's in place of zero's in
the field your averaging and the AVG function should produce the
correct results.
bobh.

On Jul 26, 2:04 pm, lucky33 <kimbal...@bellsouth.netwrote:
I am using the AVG function in a report to show the average number of
cases picked per line item over a given period of time. For instance
the user might want the info from 07/16/07 to 07/20/07.

Can you make the AVG function only use the records that have data in
them. For instance there might be one day between 07/16/07 and
07/20/07 that nothing was picked so the number of cases per line item
would be zero and I do not want Access to calculate that zero amount
in the overall average due to the fact that the averages will show
lower than they actually are on the report.

All help is greatly appreciated.

Jul 26 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Alan Bashy | last post by:
Please, guys, In need help with this. It is due in the next week. Please, help me to implement the functions in this programm especially the first three constructor. I need them guys. Please, help...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
1
by: Michael D. Reed | last post by:
I am using the help class to display a simple help file. I generated the help file using Word and saving it as a single page Web page (.mht extension). I show the help file with the following...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
4
by: Stef Mientki | last post by:
I'm making special versions of existing functions, and now I want the help-text of the newly created function to exists of 1. an extra line from my new function 2. all the help text from the old...
22
by: Amali | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of...
1
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.