The calculation context is the data that a calculation takes into account to generate a result.
This means that the value given by a measure is determined by the dimensions used to calculate the measure.
A report contains two kinds of objects:
- Dimensions represent business data that generate figures. Store outlets, years or regions are examples of dimension data. For example, a store outlet, a year or a region can generate revenue: we can talk about revenue by store, revenue by year or revenue by region.
- Measures are numerical data generated by dimension data. Examples of measure are revenue and number of sales. For example, we can talk about the number of sales made in a particular store.
A calculation has an input context and an output context. You can specify neither, either, or both explicitly.
- The Input Context is the set of dimensions used to make the calculation.
- The Output Context is a set of dimensions that functions like a break in the calculation. It causes the calculation to output values as if they are calculated in the footer of a table break.
Determining the set of dimensions used to generate a measure is called defining the calculation context (or forcing the calculation context).