When I run a calculation, it seems to want to apply it to every row. Is it possible to have the calculations only in one group (by margin)?

Each group has 2-3 rows and a slider outputting a number. I want to take those numbers and have one calculation in the group as a sum of those numbers. Is that possible?