Business Objects - Webi - Location Based Context of Formulas and Variables
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.
This article explains how Business Objects (BO) evaluates formulas and variables based on the context of their location in the report structure.
When you create a formula or variable in a BO report, it is evaluated depending on the context of its location in the document. This limits the data that BO uses to calculate the value. It is particularly important to keep this in mind when you use aggregation formulas.
BO evaluates most measures in this manner; unless specifically built not to, they will automatically sum in accordance with their context. This makes them functionally equivalent to the formula:
=sum(<A Measure Object>)
Context by Location
|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)||Row Total|
Be careful what values you aggregate; be aware of the dimensions that determine the context, in particular for the rows of a table. Some aggregations that can produce incorrect values:
Snapshots for a time period (i.e. to date or running totals)
Overlaps over time. For example, the same value occurs in different time periods so that the total for both periods is not the sum of the individual periods)