BI Query Designer
BI Query Designer
An Nguyen – BI Consultant
Contents
1. Introduction
2. Create, save & change
3. Query Filter
4. Characteristic Properties
5. Formulas, Calculated and Restricted Key figures
6. Variables
7. Conditions And Exceptions
© 2012 An Nguyen 2
Use
© 2012 An Nguyen 3
Contents
1. Introduction
2. Create, save & change
3. Query Filter
4. Characteristic Properties
5. Formulas, Calculated and Restricted Key figures
6. Variables
7. Conditions And Exceptions
© 2012 An Nguyen 4
How to design query
© 2012 An Nguyen 5
Open Query Designer
1. Open the Query Designer from Start Programs Business Explorer Query
Designer (7.0) version .
© 2012 An Nguyen 6
Logon to BI Server
2. Choose BW Server
3. Input username/password
© 2012 An Nguyen 7
Query designer Screen in BI 7.0
© 2012 An Nguyen 8
Query Designer Tool Bar
© 2012 An Nguyen 9
Create New Query
© 2012 An Nguyen 10
Design Query
Free Characteristics
Result
© 2012 An Nguyen 11
Structure
A structure appears in the Query Designer automatically if you move a key figure
from the InfoProvider screen area into the rows or columns of the query definition.
Structure
© 2012 An Nguyen 12
Check Query
© 2012 An Nguyen 13
Query Properties
© 2012 An Nguyen 14
Open Query
© 2012 An Nguyen 15
Find Query
The Open dialog box contains different views which you can change between using the
application toolbar in the left area of the dialog box.
© 2012 An Nguyen 16
Save Query
© 2012 An Nguyen 17
Contents
1. Introduction
2. Create, save & change
3. Query Filter
4. Characteristic Properties
5. Formulas, Calculated and Restricted Key figures
6. Variables
7. Conditions And Exceptions
© 2012 An Nguyen 18
Features
Filters are used in reporting, analysis, and planning to restrict data to a certain business
sector, product group, or time period, for example.
By taking a subset of a dataset in this way, you can ensure that users or user groups only
have access to the data that is relevant for them; you can also ensure that only certain
data areas are visible to them within an application scenario.
You can select characteristics from the directory tree of the InfoProvider and restrict them
to individual characteristic values; you can also select individual characteristic values or a
key figure.
© 2012 An Nguyen 19
Restrict the Characteristic
Restricting in Characteristic Restrictions will help to restrict the data set exposed through
the query to the end user
© 2012 An Nguyen 20
Restrict the Characteristic
Division Restricted
Result: Restricted
© 2012 An Nguyen 21
Single Values ( Hierarchy ) Restrictions
© 2012 An Nguyen 22
Characteristic value variables
© 2012 An Nguyen 23
Value Ranges Restrictions
© 2012 An Nguyen 24
Variable Offsets
© 2012 An Nguyen 25
Key Figure Filter
© 2012 An Nguyen 26
Default Values (Query Filter)
© 2012 An Nguyen 27
Contents
1. Introduction
2. Create, save & change
3. Query Filter
4. Characteristic Properties
5. Formulas, Calculated and Restricted Key figures
6. Variables
7. Conditions And Exceptions
© 2012 An Nguyen 28
Characteristic Properties
Click on Characteristic
Tab Page: General
Description: The name of the characteristic appears here
automatically. You can overwrite this text.
Technical Name: The technical name of the characteristic is
displayed here.
Tab Page: Display
Value Display: Under Display As, you can specify whether and
in which format the individual characteristic values of the
characteristic are displayed.
No Display: The characteristic display is hidden.
Key and Text: The characteristic values are displayed by their
technical key and text.
Text: The characteristic values are displayed by their text.
Key: The characteristic values are displayed by their technical
key.
Text and Key: The characteristic values are displayed by their
text and technical key.
© 2012 An Nguyen 29
Display Tab
Value Display
If you set a display type that contains text, you can choose
under Text Display which text type you want to set. The
following options are available:
Standard: The shortest available text for the characteristic
values is used.
Short Text: The short text for the characteristic values is used.
Long Text: The long text for the characteristic values is used.
Medium Text: The medium text for the characteristic values is
used.
© 2012 An Nguyen 30
Display Tab - Sorting
You can set the sorting within the characteristic according to the key or text in ascending or
descending order.
© 2012 An Nguyen 31
Display Tab - Result
You can choose whether the results rows are Always Displayed, Always Suppressed, or
Displayed with More Than One Single Value.
© 2012 An Nguyen 32
Contents
1. Introduction
2. Create, save & change
3. Query Filter
4. Characteristic Properties
5. Formulas, Calculated and Restricted Key figures
6. Variables
7. Conditions And Exceptions
© 2012 An Nguyen 33
Formulas
You can recalculate the key figures in a structure using a formula. You can include basic
key figures, restricted key figures, and calculated key figures in the formula definition.
Create New Formula
Formula
Result
© 2012 An Nguyen 34
Percentage Functions
© 2012 An Nguyen 35
Percentage Functions
Result
© 2012 An Nguyen 36
Create New Restricted Key Figure
You can restrict the key figures of an InfoProvider for reuse by selecting one or more
characteristics.
The key figures that are restricted by one or more characteristic selections can be basic
key figures, calculated key figures, or key figures that are already restricted.
© 2012 An Nguyen 37
Create New Restricted Key Figure
Result
© 2012 An Nguyen 38
Create New Calculated Key Figure
In the Query Designer, you use formulas to recalculate the key figures in an InfoProvider so
that you can reuse them for all the queries for that info provider.
Calculated key figures consist of formula definitions containing basic key figures, restricted
key figures or pre-calculated key figures.
Formula
© 2012 An Nguyen 39
Create New Calculated Key Figure
Result
© 2012 An Nguyen 40
Available operators
Basic functions
Percentage Functions
Data Functions
Mathematical functions
Trigonometric functions
Boolean Operators
© 2012 An Nguyen 41
Contents
1. Introduction
2. Create, save & change
3. Query Filter
4. Characteristic Properties
5. Formulas, Calculated and Restricted Key figures
6. Variables
7. Conditions And Exceptions
© 2012 An Nguyen 42
Characteristic value variables
Characteristic value variables represent characteristic values and can be used wherever
characteristic values can be used.
Create new variable on the
required characteristics
© 2012 An Nguyen 43
Characteristic value variables
© 2012 An Nguyen 44
Contents
1. Introduction
2. Create, save & change
3. Query Filter
4. Characteristic Properties
5. Formulas, Calculated and Restricted Key figures
6. Variables
7. Conditions And Exceptions
© 2012 An Nguyen 45
Condition
Conditions are used to display the set of data in which you Create new condition
are interested e.g. . Profit Centers which has sales more
than 2 Million.
In the results area of the query, the data is filtered according
to the conditions so that only the part of the results area that
you are interested in is displayed.
Result
© 2012 An Nguyen 46
Exception
Exceptions can be used to highlight the specific results for Sales office or Customer actual
sales is less than 70% of the planned sales.
Data that varies from these thresholds is highlighted in color or marked with icons.
© 2012 An Nguyen 47
Exception
© 2012 An Nguyen 49
You define queries by
© 2012 An Nguyen 50
Thank you!
© 2012 An Nguyen 51