Issue #25114:add totals