Ability to filter on rollup field creation

Currently the rollup field works with all records found with the non-empty values. I would like to filter the records found further, using another field. E.g filtering on a status field for all payments voided, and thus only returning the count/sum etc for those records matching the filter.