Use
When defining a query, you can restrict characteristics to single characteristic values, value ranges, hierarchy nodes or characteristic value variables.
Prerequisites
You want to restrict a characteristic to one or more values in the query definition or when defining a restricted key figure. You have selected the characteristic and chosen Restrict from the context menu (right mouse click).
Procedure
When you select characteristics in the query definition, you can use the same functions as the F4 Help in the executed query. Select the Fixed value tabstrip and follow the notes in
Selecting Filter Values.The following functions are the same:

Note that here, all values are displayed that are available in the master data table, that means, all values, for which there are data records in the InfoCube. No restriction is carried out on values with display authorization.
You can choose from the following additional functions in the query definition:
Selecting variables
When you select characteristic values in the query definition, you can also select variables instead of fixed values. These act as benchmarks and are only filled with fixed values when the query is executed.
Selecting single value variables
Selecting value range limits
If you choose one of the operators is greater than or equal to, is less than or equal to, is greater than, or is less than, select a value from the list of available variables in the left-hand window, drag it across, and drop it into the Selection window on the right (alternatively use the button with the arrow pointing to the right to move the variable across into the Selection window).
Selecting intervals with variables and a fixed limit
Selecting intervals whose upper and lower limits refer to the same variable

Please note that you cannot combine other values, hierarchy nodes or variables with a variable of the type Selection option or Query variable.
Selecting variable offsets

You can only use this function for characteristic value variables of the type single value.

You want to select the period of the last 5 years for evaluating your data.
Selecting fixed/variable hierarchies/hierarchy nodes
You can also restrict characteristics by hierarchy or hierarchy node, on a fixed or variable basis. See
Restricting Characteristics: HierarchiesDirect entry

You cannot use this function if you want to restrict the characteristic. You cannot make a direct entry when you are selecting structure elements (for example, key figures) or values from a hierarchy.
Instead of characteristic values in external format, you can also enter variables in the form of &<variable name>& (ampersand (&) at the beginning and at the end of the entry, and without blank spaces).
The system checks whether this value exists. If the value does not exist, you get a warning. However, you can still use the value in the variable.

Note the following conventions for making entries for value ranges and intervals:
Value range: <operator><value>, for example, >= 1995
Intervals: <lower limit>;<upper limit>, for example, A01; B99
Interval with a variable limit, for example &VAR&; 2000
Result
You have now restricted a characteristic by certain characteristic values. Choose OK. You return to the query definition. Save your entries and execute the query.

If you have restricted a characteristic to a variable value, before the query is executed, a dialog box appears for you to enter variable values manually (provided that the variable is flagged as ready for input in the variable maintenance). Enter the required values and choose OK. The query is now executed with the chosen values.
The query is created according to your selection conditions. The selected characteristic values are displayed in the filter cells, on the right, next to the corresponding characteristic. Only the characteristic values you selected are included in the results area.
See also:
Creating Queries with Variables