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.
Most reports contain two kinds of objects:
- Dimensions
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
Measures are numerical data generated by dimension data. Examples of measures are revenue and number of sales. For example, we can talk about the number of sales made in a particular store. Measures can also be generated by combinations of dimension data. For example, we can talk about the revenue generated by a particular store in 2012.
Input and Output Contexts
- 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).