I use formula with shared variables to accomplish this.
1) set the varaible to zero, usually in a group header:
shared numbervar aTotal:=0;
""//hides the assignment
2) increment the value, usually in detail section:
shared numbervar aTotal := aTotal + Sum ({@34XS2Bakiye}, {SSiparisDMatrix.Nitelik1});
global numbervar V34XS;
V34XS := Sum ({@34XS2Bakiye}, {SSiparisDMatrix.Nitelik1})
3) display final value; usuall a group footer:
shared numbervar aTotal
you can substitute global for 'shared' in a report without subreports, they are functionally the same.
HTH