Book Image

Creating Universes with SAP BusinessObjects

By : Taha Mahmoud
Book Image

Creating Universes with SAP BusinessObjects

By: Taha Mahmoud

Overview of this book

Table of Contents (17 chapters)
Creating Universes with SAP BusinessObjects
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Aggregate awareness


The aggregate awareness feature is used to increase performance by leading the report query to select objects from the aggregated table instead of the detailed table at runtime. There are three main steps to set up the aggregate awareness feature:

  1. Insert the aggregated tables into our Data Foundation layer.

  2. Use the @Aggregate_Aware() function with common objects.

  3. Detect and set the incompatible objects.

As we don't have any aggregated tables in NorthWind, we will create an aggregated derived table to simulate a data mart table.

Inserting aggregated tables

The first step is to insert the data mart aggregated table into our Data Foundation layer. As we don't have one, we should create the aggregated derived table to simulate the case. In this example, we will create the Yearly Order Details derived table to aggregate the order quantity using Order Year, Order Quarter, and Order Month. These dimensions will be based on Order Date from the Orders table. To create the aggregated...