P
pyrahna
I am trying to do a conditional avg in my report footing. I would
like to avg values that are on the same row as an item between 7000
and 9000. for instance
6000 2
7500 3
8000 4
8500 5
9500 6
the answer would be 4
I have tried both of the following to no avail
=IIf(([RPM]>7000) And ([RPM]<9000),Avg([rpm]),0)
and
SUM(iif(([RPM]>7000) And ([RPM]<9000),[RPM],0))/SUM(iif(([RPM]>7000)
And ([RPM]<9000),1,0))
neither of which have worked.
any ideas would be appreciated.
like to avg values that are on the same row as an item between 7000
and 9000. for instance
6000 2
7500 3
8000 4
8500 5
9500 6
the answer would be 4
I have tried both of the following to no avail
=IIf(([RPM]>7000) And ([RPM]<9000),Avg([rpm]),0)
and
SUM(iif(([RPM]>7000) And ([RPM]<9000),[RPM],0))/SUM(iif(([RPM]>7000)
And ([RPM]<9000),1,0))
neither of which have worked.
any ideas would be appreciated.