How to cumulate 2 fields

I set up the accumulation as described in the tutorial.

This works well with the ‘profit’ field. However, as soon as a ‘swap’ value is available, the result is no longer correct.
Unfortunately, you cannot include a second field in the field created for the accumulation.

Is there another possibility?

grafik