The value of an analysis variable in any row of a report is the value
of the statistic associated with it (in this case Sum) calculated for all
observations represented by that row. In a detail report each row represents
only one observation. Therefore, the Sum statistic is the same as the value
of Sales for that observation in the input data set.

define sales / analysis sum format=dollar7.2 'Sales';