Re: averages containging null values
- From: "John Spencer" <spencer@xxxxxxxxx>
- Date: Mon, 18 Feb 2008 12:26:27 -0500
How about using the following expression
=Avg(IIF([SomeField=0,Null,SomeField))
Avg ignore nulls so any field the is null won't be used to calculate the
average. And you are forcing zeroes to Null, so they won't be used in the
calculation either.
--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..
"greg" <greg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3360683C-8B8A-4666-958B-ABFC63CB30B9@xxxxxxxxxxxxxxxx
I have a grouped field in a report that returns some percentage values
ie
90%
90%
0%
50%
null
i want to calculate the average percentage of this field excluding 0 and
null and put it in the group footer
ie
230/3 = 76.66%
.
- Prev by Date: Re: On Time Delivery Query
- Next by Date: Print Just One Record
- Previous by thread: Re: Corstabquery or normal query
- Next by thread: Print Just One Record
- Index(es):
Relevant Pages
|