Data Reports is pretty limited. You cannot create a user defined formula (which is basically what you are attempting) for each record.

Data Reports does have the Function control but that control can only be placed in the Report Footer or Group Footer sections.

Do the totalling in your sql statement. Then add a textbox to the Details section bound to this new field.