ReportSmith : Sum of derived Field

Does anybody know a way of computing the sum of a derivedField (wich
is defined via a reportBasic macro). ??

Is it possible to use 'global variables' or things like this ?

Thanks in advance.