When you're creating the summary, you need to be sure to select the Group level at which you want the sum.
If you want to include just certain types of transactions, you would create a formula like this:
If {MyTable.RecordType} = 'Avantages' then {MyTable.Amount} else 0
You would then sum this formula.
-Dell