Escolar Documentos
Profissional Documentos
Cultura Documentos
Applies to:
SAP Netweaver 2004s BI.
Summary
This Article will help you understand how to create bucket scenarios in a report using Query Designer. It will
also help you understand the concept of Exception Aggregation with much ease.
Author Bio
Neelesh Kumar Jain is working as SAP BI Consultant with HCL AXON and is Certified in SAP
BW 3.5 and SAP BI 7.0. He has got 3 years of experience as SAP BI Consultant and has
expertise in handling Implementation and Support projects for multiple clients.
Table of Contents
Introduction .........................................................................................................................................................3
A Typical Bucket Scenario ..............................................................................................................................3
Exception Aggregation ....................................................................................................................................4
Implementation ...................................................................................................................................................5
Step 1 ..............................................................................................................................................................5
Step 2 ..............................................................................................................................................................5
Step 3 ..............................................................................................................................................................6
Step 4 ..............................................................................................................................................................6
Step 5 ..............................................................................................................................................................9
Step 6 ..............................................................................................................................................................9
Step 7 ............................................................................................................................................................10
Step 8 ............................................................................................................................................................11
Related Content................................................................................................................................................12
Copyright............................................................................................................ Error! Bookmark not defined.
Introduction
Often we come across reporting requirements involving bucket scenarios.
This Article will help you understand how to create bucket scenarios in a report using Query Designer. It will
also help you understand the concept of Exception Aggregation with much ease.
To start with, the following topics will be discussed:
• A Typical Bucket Scenario
• Exception Aggregation
Figure - 1
Exception Aggregation
For creating the above report this article uses the concept of Exception Aggregation. For those who do not
know, what Exception Aggregation is, a brief of the concept is provided.
To understand Exception Aggregation, first the concept of Aggregation needs to be understood.
For Aggregation, you specify the function (SUM/MAX/MIN) that determines the way in which the key figure is
aggregated by default for the same key (that is, Standard Aggregation behavior).
Whereas for the Exception Aggregation, you specify the function (Last Value, First Value…) that determines
the way in which the key figure is aggregated using the Reference Characteristic for Exception Aggregation.
For Reference Characteristic for Exception Aggregation field, you choose the characteristic with reference to
which the key figure is aggregated with Exception Aggregation. Generally, this is a time characteristic.
However, it can be any characteristic.
Examples:
• The key figure number of employees is aggregated using the characteristic cost center (this is
standard aggregation behavior). In this case, you would set a time characteristic as a reference
characteristic with last value as the exception aggregation.
• As a sales manager, you want to analyze the number of products sold and the average number of
different products sold to different customers for each sales year. In your InfoCube, only a key figure
of the net weight for the different sold products is provided. Using the new functions for exception
aggregation, you can derive the additional key figures needed just from the net weight for sold
products.
Implementation
To implement the Report as required above, you need to follow the steps below:
Note:
• It is assumed that your InfoProvider does contain the following Characteristic InfoObjects:
• It is assumed that your InfoProvider does contain the following Key Figure InfoObject:
Step 1
Open the Query Designer; create a new Query on the InfoProvider which contains the above mentioned
InfoObjects.
Step 2
Drag and drop the Characteristic ZCOUNTRY into the Columns.
Figure - 2
Step 3
Drag and drop the Key Figure ZREVENUE into the Rows.
Figure - 3
Step 4
In the Rows, create a New Formula, go to Edit and give the description and formula as shown below:
Figure - 4
Similarly create 5 more new formulas with description and formula as shown below respectively:
Figure - 5
Figure – 6
Figure – 7
Figure – 8
Figure – 9
Step 5
Now go to the display properties and select the option “Always Hide” for all the Formulas created and for the
Key Figure ZREVENUE.
Figure – 10
Step 6
In the Rows, create a New Formula, go to Edit and give the description and formula as shown below:
Figure – 11
Note:
In the formula, simply the formula created previously with description “Logic < 10 mn $” is included.
Figure – 12
Step 7
Select the formula with description “< 10 mn $” and go to Aggregation Properties and select “Counter for All
Detailed Values that are not Zero, Null, or Error as the as the function of Exception Aggregation and
“Customer” (ZCUSTOMER) as the Ref. Characteristic.
Figure – 13
Similarly set the same Aggregation Properties for all the formulas with description given below:
a) >= 10 mn $ < 20 mn $
b) >= 20 mn $ < 30 mn $
c) >= 30 mn $ < 40 mn $
d) >= 40 mn $ < 50 mn $
e) >= 50 mn $
Step 8
Check the Query, Save the Query and Execute the Query.
Now you have your Report with a Bucket Scenario ready.
Figure – 14
Note:
o Naming used for Description of Objects is not mandatory to be used as they are given in this article.
However meaningful naming convention is recommended.
Related Content
Exception Aggregation
Calculating Proper SUMCT for Calculated Key Figures
Enterprise Reporting, Query & Analysis in NetWeaver7.0
For more information, visit the Business Intelligence homepage.