I have a question about excluding certain rows from an average in impromptu 7.0. I have a column of values like this:
Tons Stump $ Stump $/Ton
100 1000 10
200 2000 10
300 0 0 <-- I want to exclude this row
400 0 0 <-- I want to exclude this row
----- ---- -----
10000 3000 0.3 <-- I want this value to be 10
by excluding the rows with 0
stump $
If I code the calculated total to be something like this:
if (stump $ > 0) then ( total(stump $) / total (tons)) else
total (stump $) / ( total(tons) - tons)
However, this only works for one row, because the running total for tons will include the amounts for the rows where stump $ are zero. Does anyone have any suggestions? Thanks!
Tons Stump $ Stump $/Ton
100 1000 10
200 2000 10
300 0 0 <-- I want to exclude this row
400 0 0 <-- I want to exclude this row
----- ---- -----
10000 3000 0.3 <-- I want this value to be 10
by excluding the rows with 0
stump $
If I code the calculated total to be something like this:
if (stump $ > 0) then ( total(stump $) / total (tons)) else
total (stump $) / ( total(tons) - tons)
However, this only works for one row, because the running total for tons will include the amounts for the rows where stump $ are zero. Does anyone have any suggestions? Thanks!