In the report footer (not the page footer) you can use a control with
the following as its source.
Assumption: Your field is named SuccessRate
= Abs(Sum([SuccessRate]="Success")) / Count([SuccessRate])
How it works.
In the footer
[SuccessRate] = "Success"
will return True (-1) or False(0) for every record.
Sum will total all those -1's
Abs will remove the negative sign
Count([SuccessRate]) will count 1 for each record in the report where
[SuccessRate] has some value. So it will count both Success and Failure
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
Hi all,
I have a report and one of the columns is for success rates.
example,
Success Rates
-------------------------
Success
Success
Failure
Success
Failure
What I want to do is to find the average success rate. Can anyone help with
getting the answer?
Cheers,
Chris
What's the context? Do you want the percentage of Success over the entire
table, or is there some other field (you mention a "run") that identifies a
subset?
If it's over the entire table, create a query. In a vacant field cell put
PctSuccess: Sum(IIF([Success Rates] = "Success", 1, 0))/Count(*)
If it's in a totals query you will need to use the "Expr" operator on the
Totals line.