Advanced Filters

The Advanced Filters dialog allows you to apply more complex filters to your data by using comparison operators as well as AND/OR logical operators. The Advanced Filters dialog can be used to create a new filter or modify a filter by using .

If a data type has been defined in the Data Model, user input will be validated.

Item Description

Filter Area (text box)

Located at the top of the dialog, this area cannot be changed unless you click (Edit).

The content of the Filter Area is based on the existing filter of the current view or generated from the conditions specified in the section containing the Field List.

Field Lists (drop-down menus)

Available fields to choose from. The user can edit custom conditions (using comparison operators) in the text areas provided in front of each field.

is displayed in front of some fields when a prompt is defined for this specific field. This means that you can open a Prompt dialog that will allow you to select existing values from a list instead of manually typing them in the Filters dialog.

Add Criteria (arrow) attaches the conditions specified in the Field List to the final Generated Filter area. If some conditions already exist in the Generated Filter area, the new condition is joined using the AND / OR operators as specified by the user.
Clear (button) clears the conditions in the Generated Filter area.
Edit (button) shows the Expression Builder (Filter Builder) window where you may manually edit the filter in SQL format. See the example below.
Confirm The filter is applied and the data is refreshed.

Comparison Operators

Operand Condition Form Description

=

Value

Equal

<>

<> value

Not equal

>

> value

Greater than

>=

>= value

Greater or equal

<

< value

Less than

<=

<= value

Less or equal

Between

Between Value1 and Value2

Between a lower value and upper value inclusively

Not Between

Not Between Value1 and Value2

 

Contains

Value

Strings that contain the Value at any position inside the string

Not Contains

Value

Strings that do not contain the Value at any position

End With

Value

Strings that end with the value

Start With

Value

Strings that start with the value

In

Value1, Value2,Value3...

In a set of values

Not In

 

 

Is Null

Not applicable

Where the value is null

Is Not Null

Not applicable

Where the value is not null

Logical Operators

Multiple conditions can be combined using the AND / OR operators. When both AND / OR operators are used, each OR separates groups of comparisons connected by AND.

In this case, the final condition would have the following form:

(condition1 AND condition2 AND) OR (condition3 AND condition4 AND) OR

  • Click the parenthesis or the AND/OR sign to toggle them when constructing the filter.

Expression Builder (Filter Builder)

The Expression Builder is a user-friendly tool used to manually edit your filter using SQL. Various fields, functions and operators are available to build the expression.

The following list provides examples of what can be used:

  • Process Fields: grouped by the source files they belong to
  • Arithmetic Operators: +, -, /, *, %, (, )
  • Comparison Operators: =, >, <, <>
  • Logical Operators: AND, OR, NOT
Example

The top box of the window contains the Locked Filter and the Filter Editing boxes.

Users can manually construct the SQL expression. Keywords and operators can also be inserted from the list provided in the lower section.

By clicking on a data model (from the data model folder), related data model fields are displayed in the center. Field type, Description and Length are provided.

To add a keyword or a field to your script:

  1. Double-click on the corresponding line in the center list. Operators can be added by clicking the buttons provided.

  2. The Validate button verifies if your expression is valid.

  3. Once validated click Confirm.