Skip to Content
Author's profile photo Former Member

Basics of Cube Aggregates and Data Rollup

What are Cube Aggregates?

  Definition

An aggregate is a materialized, summarized and condensed view of the data in an Info Cube. An aggregate maintain the dataset of an Info Cube redundantly and persistently.

  • Summarized and Condensed view refers to the condensing of the fact table of an Info cube to an aggregate table.
  • An aggregate table no longer contains certain characteristics of the Info cube and has been condensed across attributes.

When We Create Aggregate on Cube?

Basic purpose of using aggregates is to make data extraction faster.

When we access the data frequently for reporting and we have huge amount of data it takes more time retrieve. If a query is frequently used for reporting and we want performance enhancement then we use aggregates on data source (at Info Cube).

  • Aggregation makes data condensed and summarized so you can access the data of an Info Cube quickly when reporting.
  • New data is loaded at regular interval (a defined time) using logical data packages (requests) in an aggregate. After this transaction, the new data is available for rolling up in reporting.
  • Aggregates are used when we often use navigational attributes in queries or we want aggregation up to specific hierarchy levels for characteristic hierarchies. Both time-dependent attributes and time-dependent hierarchies can be used in aggregates.
  • Note:
  1. To find our queries frequently used and taking more time we can check RSDDSTAT_OLAP table (TCODE SE11).
  2. You can use Table RSDCUBE to determine the Info Cube assigned to the aggregate using aggregate id (6digit).

Prerequisites

  • The Info Cube for which we are creating aggregate must be in active state and there should not be any aggregate with same set of attributes for that Info Cube. Every aggregate must be unique.
  • If you have created aggregates for an Info Cube and entered data for them, the OLAP processor automatically accesses these aggregates. When navigating, the different results are consistent. The aggregate is transparent for the end user.
  • If you want to use system propose aggregates, and then you must create at least one query for the selected Info Cube. The necessary aggregates can be proposed when you start the queries and navigate in them.

Steps to create Aggregate

  • Go to TCODE RSA1 and select the InfoCube in which you want to create aggregate and select Maintain Aggregates option.

/wp-content/uploads/2013/07/1_236219.jpg

  • When first time we create an aggregate for an Info Cube it asks for type of aggregate.

/wp-content/uploads/2013/07/2_236220.jpg

a. Generate proposals

  • The system proposes suitable aggregates. The Specify Statistics Data Evaluation dialog box appears.
  • Enter Run time, from date and to date details & Choose Next.
  • This will bring you to the Maintain Aggregates screen .The system displays the proposed aggregates in the right area of the Aggregates screen. 

b. Create yourself

  • This will bring you to the Maintain Aggregate screen.

/wp-content/uploads/2013/07/3_236221.jpg

    • Note : Aggregates are always build on Characteristics not for key figures .
  • Drag all characteristic you want to include in Aggregate to write side window pane. You can add characteristics one by one as well. Following screen will appear.

/wp-content/uploads/2013/07/4_236222.jpg

/wp-content/uploads/2013/07/5_236223.jpg

/wp-content/uploads/2013/07/6_236224.jpg

  • If you will select later for activation of aggregate following screen will appear where you can give date and time according to your requirement.

/wp-content/uploads/2013/07/7_236225.jpg

  • After activation aggregate will show you record available for aggregation ,summarized record count ,last roll up ,last used (in query) etc. details .

/wp-content/uploads/2013/07/8_236226.jpg

This screen will give you following information also:

  • Hierarchy and hierarchy level fields are used for aggregates on hierarchies.
  • Valuation column will show ‘–‘and ‘+’ sign:
  1. The larger the number of minus signs, the worse is the evaluation of the aggregate, “—–” means: The aggregate can possibly be deleted.
  2. The larger the number of plus signs, the better is the evaluation of the aggregate, “+++++” means: The aggregate could make a lot of sense.
  • Records will tell about number of records in the filled aggregate (size of the aggregate).
  • Records Summarized (mean value) will tell about number of records read from source in order to create a record in the aggregate. This shows quality of the aggregate. Large value show better compression (better quality) .If it is 1 the aggregate is a copy of the Info Cube and should be deleted.
  • Usage shows how often has the aggregate been used for Reporting in queries?
  • Last Used shows when was the aggregate last used for Reporting? If an aggregate has not been used for a long time, it should be deactivated or deleted.

In order to increase the load performance you can follow the below guidelines:


1. Delete indexes before loading. This will accelerate the loading process.
2. Consider increasing the data packet size
3
. Un check or remove the Bex reporting check box if the DSO is not used for reporting
4
. If you are using abap code in the routines then optimize the code. this will increase the load performance
5
. Un check the SID generation check box
6
. Write optimized DSO are recommended for large set of data records since there is no SID generation in case of write optimized DSO.This improves the performance during data load.


Steps before using an Aggregate

  • To use an aggregate for an Info Cube when executing a query, we must first activate it and then fill it with data.
  • To use an existing aggregate select the aggregate that you want to activate and choose Activate and Fill. The system will create an active version of the aggregate.
  • Once the aggregate is active you must trigger the action to fill the aggregate with data.
  • The active aggregate that is filled with data can be used for reporting. If the aggregate contains data that is to be evaluated by a query then the query data will automatically come from the aggregate.
  • When we create a new aggregate and activate it initial filling of aggregate table is automatically done.

Rolling Up Data into an Aggregate

a. ROLL UP

    • If new data packages or requests are loaded into the Info Cube, they are not immediately available for Reporting via an aggregate. To provide the aggregate with the new data from the Info Cube, we need to load the data into the aggregate tables at a time which we can set. This process is known as ROLL UP.

b. Steps of rolling up new requests

    • In the Info Cube maintenance you can set how the data packages should be rolled up into the aggregate for each Info Cube.
    • In the context menu of the required Info Cube select Manage. The Info Provider Administration window appears. In the Manage Data Targets screen select tab Rollup.

/wp-content/uploads/2013/07/9_236227.jpg

    • Here from selection button you can set date and time of rollup.

/wp-content/uploads/2013/07/10_236231.jpg

    • You can set an event after aggregation and also create a process to run the job periodically. Selective request can be aggregate by providing request id.
    • Request can be rolled up based on no of days.

/wp-content/uploads/2013/07/11_236233.jpg

    • After rollup you can see the check sign in manage tab. Selecting a request for rollup will also rollup all previous requests loaded before that but not the new one .

/wp-content/uploads/2013/07/12_236234.jpg

Levels of Aggregation

  • Aggregation level indicates the degree of detail to which the data of the underlying Info cube is compressed and must be assigned to each component of an aggregate (characteristics, navigation attributes, hierarchies).

Aggregation level can be

          By default, the system aggregates according to the values of the selected objects:

  • ‘*’ All characteristic values
  • ‘H’ Hierarchy level
  • ‘F’ Fixed value

Thank you for reading this blog .Please add your comments .


For similar content follow My Blog


QwertyCuddle | Better data ,better design..

Reference(s)

  1. http://help.sap.com/saphelp_nw04/helpdata/en/7d/eb683cc5e8ca68e10000000a114084/frameset.htm
  2. http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6791e07211d2acb80000e829fbfe/content.htm
  3. http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/906de68a-0a28-2c10-398b-ef0e11ef2022?QuickLink=index&overridelayout=true

Assigned Tags

      18 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Raman Korrapati
      Raman Korrapati

      Great blog with good presentation and very useful too. Good job and thanks for sharing

      Author's profile photo Gurunath Kumar Dadamu
      Gurunath Kumar Dadamu

      Hi jaya Tiwari,

      Nice blog..very helpful.

      Regards,

      Gurunath

      Author's profile photo Kamal Mehta
      Kamal Mehta

      Nice .

      Thanks.

      Author's profile photo RAJAN SUBRAMANIAN
      RAJAN SUBRAMANIAN

      This is well narrated with the clear step by step for the cube aggregate and roll up.

      Thank you.

      RAJAN SUBRAMANIAN

      Author's profile photo Kodanda Pani KV
      Kodanda Pani KV

      Nice document about aggregates.

      Thanks,

      Phani.

      Author's profile photo Former Member
      Former Member

      Hi Jaya,

      Very useful document.

      Thanks for sharing.

      Thanks,

      Somesh.

      Author's profile photo Daniel Ray
      Daniel Ray

      hi Jaya,

      Very good information. Just few doubts.

      When we create aggregates on an infocube, will there be a physical table's created for the aggregates ? Do we need to delete aggregates and again rollup aggregates during the data load of an infocube ?

      For example, if the infocube name is zic_11, what will be the aggregate table name if we have 1 aggregate created on it ? Please advise.

      Thanks

      DR

      Author's profile photo Former Member
      Former Member

      Hi,

      Aggregates are smaller cubes which are built on cube in order to improve the query performance.

      You can check the aggregates in Se11 give table name as RSDDAGGRDIR.

      No need to delete aggregates, After Aggregate (Initial fill) what related data has been loaded to cube has rolled back to aggregates, this can be performed process called Roll up. If u dont do roll up this request will not available fro reporting.

      Hopes this Helps.

      Thanks.

      Author's profile photo Former Member
      Former Member

      Good 🙂

      Author's profile photo Former Member
      Former Member

      Hi,

      Thank you very much for writing this.

      I am new to SAP and I tried to retrieve data from BPC Planning to my Dashboard via BEX queries.

      I can retrieve bottom level data but I am unable to retrieve parent level data. Is it because i didn't do this aggregation for my cube?

      Doesn't BW do aggregation automatically as seen from my BPC EPM add-in reports?

      Regards,

      Winson

      Author's profile photo Former Member
      Former Member

      Impressed a lot, very good job 🙂

      Author's profile photo Former Member
      Former Member

      Hi Jaya,

      Its a Nice one.

      I have doubt here,

      How to know, how many times a aggregate was hit by a query?.

      Do we have any TCODE to find this?

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Sanjay,

      I don't know about such tcode but i think it must be captured somewhere in log tables .

      Regards,

      Jaya

      Author's profile photo Leslaw Piwowarski
      Leslaw Piwowarski

      Try this.

      How to display a list of queries that use a given aggregate - an example of QuickViewer usage.

      I created it while optymizing the aggregates.

      A report for a query or an aggregate can be done.

      Regards, Leszek

      Author's profile photo Leslaw Piwowarski
      Leslaw Piwowarski

      Hi,

      Good work !

      Some features are possible only in Expert mode (Extras/Switch Expert Mode On/Off).

      I use it whenever I work with aggregates.

      Regards, Leszek

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thanks for sharing this.

      Regards,

      Jaya

      Author's profile photo Shakthi Ramalaxmi
      Shakthi Ramalaxmi

      This blog is good! Thanks for sharing your knowledge

      Author's profile photo Adem Güler
      Adem Güler

      Useful article. Thank you for sharing.