Restricting Characteristics
Use
When defining a query, you can restrict characteristics in the filter to single characteristic values, value ranges, hierarchy nodes, or characteristic value variables.
Prerequisites
You have selected the characteristic in the filter and using the secondary mouse button, you have chosen Restrict in the context menu.
Procedure
General Functions of Input Help
When you select characteristic values in the query definition, you can use the same functions as those available in the input help in the executed query. For the following functions, see the descriptions underSelecting Characteristic Values.
- Selecting single values
- Selecting value ranges
- Displaying value keys
- Values available in history
- Saving values to favorites
- Deleting values from the selection window
Searching for Values
A search option is available in the input help dialog box. For more information, seeSearching for Values.
Personalization of Input Help
You can make various user-specific settings to personalize input help functions. For more information, seeMaintaining User Settings for the Input Help Dialog Box.
Input Help Functions in the BEx Query Designer
In contrast to calling the input help dialog box from the BEx Analyzer and the BEx Report Designer, the input help dialog box in the BEx Query Designer always appears with the full range of functions and with both screen areas. The right window, Selection, which displays the selected values, is always visible.
You can choose from the following additional functions in the query definition:
Excluding Values from the Selection
You use this function to select the values that you do not need for your report.
- Select the required value in the right Selectionwindow.
- Choose
Exclude from Selection.
If you want to undo the procedure, choose
Include in Selection.
Selecting Variables
When you select characteristic values in the query definition, you can also select variables instead of fixed values. These act as placeholders and are only filled with fixed values when the query is executed.
Selecting Variables
- Choose Show → Variables.
- Under Type, select the variable type (such as Characteristic Value Variable, Hierarchy Node Variable) from which you want to select the variable.
- Select one (or, in exceptional cases, more than one) variable from the list of available variables in the left window and add them (using the right arrow) to the right Selection window.
Selecting Variable Value Range Limits
- Choose Show → Value Ranges.
- Select your required operator from the dropdown box. You can choose from the following operators:
- Between
- Less Than or Equal to
- Greater Than or Equal to
- Less Than
- Greater Than
- Select the required value or values for the value range and choose
. The input help appears in a new dialog box and displays the selection of variables under Show → Variables. - Under Type, select the variable type (such as Characteristic Value Variable, Hierarchy Node Variable) from which you want to select the variable.
- Select the required variable and choose OK.
- For the Betweenoperator, two single values are required for the interval limits; the system automatically displays two dropdown boxes. In this case, repeat steps 3-5.
- After you have set the value range, choose OK.
- Add the selection to the right Selection window using the right arrow.
Selecting Intervals with One Variable and One Fixed Limit
- Choose Show → Value Ranges.
- Choose the Between operator.
- Select the fixed limit:
You can also select the values from your history in the dropdown box.
If you want to select another value, choose
. The input help appears in a new dialog box and offers the corresponding single values under Show → Single Values or History for selection. Select the required value and choose OK. - Select the variable limit by following steps 3-5 from the Selecting Value Range Limitssection above.
- After you have set the value range, choose OK.
- Add the selection to the right Selection window using the right arrow.
Selecting Variable Offsets
- Select the required variable in the right Selection window.
- Choose
Set Variable Offsets. - Enter the required offset value.
- Choose OK.
Selecting Fixed/Variable Hierarchies/Hierarchy Nodes
You can also restrict characteristics by hierarchy or hierarchy node, on a fixed or variable basis. SeeRestricting Characteristics: Hierarchies.
Result
You have now restricted a characteristic to certain characteristic values. Choose OK. You return to the query definition. Save your entries and execute the query.
The query is calculated according to your selection criteria. The selected characteristic values are displayed to the right in the filter area, next to the corresponding characteristic. Only the selected characteristic values are included in the table (or in the chart or map).