The expression for the Total Cost calculation field is: REPEATABLESUM($work_items, cost)