Last Period Aggregation Overview
There are two types of Last Period Aggregation Calculations:
DYNAMIC AGGREGATION:
The aggregated key figure can be calculated on any time profile level since the time profile level for which aggregation takes place is defined during runtime. Use this option when the goal is to ensure flexibility at querying key figures at request level. The time aggregation will happen using last period aggregation on the requested time granularity.
- Make sure that no root time profile level is defined in the output planning level of the aggregation and in any of the calculations built on last period aggregation.
- Time profile levels must be the same in the input and output planning levels.
AGGRINVENTORY@PERPRODLOC = IBP_LPA ( "INVENTORY@DAYPRODLOC" ) AGGRINVENTORY@REQUEST = SUM ( "AGGRINVENTORY@PERPRODLOC" )
STATIC AGGREGATION:
Aggregation can be defined for a specific time profile level. For example, use the last period aggregation function to calculate the aggregated inventory level on a weekly basis, since all the other calculations built on this key figure are defined for technical and calendar weeks. Since both technical week and calendar week are built on day, you can use the static aggregation.
- Define a root time profile level in the output planning level.
- The root time profile level in the output planning level must be a possible parent (that is. a broader time period) of the root time profile level in the input planning level.
AGGRINVENTORY@TWPRODLOC = IBP_LPA ( "INVENTORY@DAYPRODLOC" )
AGGRINVENTORY@REQUEST = SUM ( "AGGRINVENTORY@TWPRODLOC" )