Filters
Use filters to determine whether specific values are included in a report. You can exclude or include elements whose Caption, Unique name, Attribute or Value match criteria that you specify. You can also enter an MDX statement to define a filter.
To open the Filter pane, click its heading in the List Designer.
Filters can be combined using the operators AND, OR, NOT so that a report shows, for example, values between ‘x’ and ‘y’ and not less than ‘z’.
When you create a value filter, you need to complete two steps. The first is to specify the value(s) and operator(s). The second is to specify the range of data to apply the filter to.
SeeFiltering and sorting by value in the Data Area.
In many cases, this will be the same as the range of data displayed in the report. However, you may want to filter a separate range of data. For example, you might want a report to show only sales outlets in 2004 which reported sales above a certain amount in 2003.
These options are available from a right-click in the
pane:- Create a filter
- Add an AND operation to the filter.
- Add an OR operation to the filter.
- Add a NOT operation to the filter.
- Change a logical operator (for example, from AND to OR)
Filter by
Select the filter criteria from this list:
Criteria | Description |
---|---|
Caption or unique name |
You can filter elements by the Unique names which were generated by the database, or by the name of the element shown in the report. Use the text filter to search for texts and strings. |
Attribute | Filters the attributes of the elements defined in the OLAP database. |
Value | Filters the values of a range. You must specify the filter settings and the Data Area of the filter. |
Custom defined MDX | Here you create a filter using an MDX statement. |
Filter type
Use the Filter type to filter the caption, the unique name and the attributes. The choices depend on the selected filter type:
Filter Type | Description |
---|---|
String | The hierarchy is searched for elements whose caption, unique name or attribute is identical with the search text. |
Wildcard | You can use wildcards to filter the element names. |
Regular expressions | You can use regular expressions to filter the element names. |
Regular expressions with AS2005+
To use .NET regular expressions with AS2005+ data sources, you must install an assembly on the Analysis Services server.
The assembly file is called Mis.Reporting.ServerExtension.dll and is installed to C:\Program Files\Infor BI\OLAP\bin by the Office Plus setup.
Use SQL Management Studio to connect to the Analysis Services database and add an assembly to the Assemblies folder.
The assembly must have these parameters:
- Path: ..\OLAP\bin\Mis.Reporting.ServerExtension.dll.
- Name: MisOlapYukonExtension
- Permissions: Safe
- Impersonation: Default
.NET regular expressions
Expression | Explanation | Example |
---|---|---|
^ | Match-beginning-of-line operator | ^A finds list elements starting with an A. |
$ | Match-end-of-line-Operator | er$ finds list elements ending in er. |
+ | Match-one-or-more operator | e.+r$ finds all list elements ending in r and also containing an e. At least one character must be located between e and r. |
| | Alternation Operator | ^A|^B finds list elements beginning with A or B. |
() | Grouping | ^(..) finds list elements containing an even number of characters. |
. | Any character | ^c..d finds list elements beginning with c, followed by two characters, followed by d. |
\ | Defines the subsequent character as a literal. | If you want to look for an 'operator character' in a list element, the backslash indicates that the character which follows belongs to a list element and is not an operator. So, \\ finds all list elements containing the character \. |
Condition
The condition operators are:
Operator | Description |
---|---|
* | No restriction: no condition is set (default setting). The input box is disabled. |
= | The entered value will be considered. |
>= | Values greater than the entered value and the value itself will be considered. |
<= | Values smaller than the entered value and the value itself will be considered. |
> | Values greater than the entered value will be considered. |
< | Values smaller than the entered value will be considered. |
<> | Values greater and smaller than the entered value will be considered. |
Contains | Strings or numbers containing the entered value will be considered. |
Does not contain | Strings or numbers which do not contain the entered value will be considered. |
Creating and editing filters
To create a filter, click
and define the filter in Filter Settings.To exchange one logical operator with another, select the operator and click
. Select the new operator from the shortcut menu.You can move parts of the filter by drag & drop.
To delete parts of a filter definition, choose the node in the tree or the operator and click
.Filtering element names
To filter element names:
- Click
- Select or from the Filter by list.
- Select the filter type, the condition and the value.
The Condition refers to the alphabetical sort order of the elements in the list. The position within the hierarchy is not taken into account.
Filtering attributes
To filter attributes:
- Click .
- Select from the Filter by list.
- Select the filter type, attribute, condition and value.
Filtering values
To filter values:
- Click .
- Select from the Filter by list.
- Select the operators and values.
- Use the Data Area to define the range of date to which to apply the filter (Filtering and sorting by value in the Data Area).
Filtering with user-defined MDX
To create user-defined MDX:
- Click .
- Select as the filter type.
- Click Custom MDX within the input area and then click the Select button.
The Edit Custom MDX dialog is displayed.
AND, OR and NOT operators
Combine filter definitions with the logical operators AND, OR and NOT.
- AND : Creates the intersection of two sets.
- OR: Creates the union of two sets.
- NOT: Creates the exception of two sets.
Examples
These examples are based on the demo model Best Practices OLAP model supplied with OLAP Server.
Filter the element caption:
- Double-click the Sales cube to create an Ad-hoc report.
- Click the Product dimension.
- Click in the List Designer.
- Click .
- Select in Filter Settings.
- Select String as the filter type.
- Select Equals as the condition.
- Select All Season Tires as the value.
The list displays all elements which contain the caption All Season Tires.
Use regular expressions to filter:
- Click .
- Select in Filter Settings.
- Select Regular Expression as the filter type.
- Select Equals as the condition.
- In the Regular Expression field, specify ^Car.
The list displays all elements beginning with the string Car.