This article explains how formulas and variables placed in a Business Objects report are evaluated based on the context of their location in the report structure.
When you create a formula (or variable) in a Business Objects report, it is evaluated based on its location (a.k.a. context) in the document. This limits the data that will be used to calculate the value. This is particularly important keep in mind when using aggregation formulas.
This also applies to most measures, unless specifically built not to, they will automatically sum to the context of where they are placed. This functionally makes them the equivalent to the formula "=sum(<A Measure Object>)".
|Header or the general body of a report
(outside of any sections)
|the entire report||Report Total|
|Section header/footer||for each value of the section||Section Total|
|Table break header/footer||for each value of the table break||Break Total|
|Row of a table||for the dimensions included in the table
(including hidden dimensions)