Skip to main content

Spotfire Filters

Filters are used to select subsets of rows in tables. There is usually one filter per column. The Filter Panel uses a defined set of filters called a filtering scheme, but several filtering schemes may coexist.

Filtering

Filter classes

The Document handles the collection of filtering schemes. Each filtering scheme contains as many filter collections as there are tables. Consequently the scope of a filtering scheme is the whole data set.

A filter collection contains filters for a given table. Each filter defines a row selection, and the filter collection combines the selected rows to a resulting set of rows.

There are several filter types: range filter , item filter, text filter and so forth. All non-hierarchy column filters can can easily be converted to another filter type, while hierarchy filters are always tied to a hierarchy column.

Related API Documentation

Code Example

Layout

The filter panel of the user interface

The filter panel organizes filters. By default, filters are placed at table group level, as are the Name and Walks filters in the image to the left. Optionally filters can be placed into sub groups, as At Bats , Hits and Home Runs , which are placed in Group 1.

Filter layout API documentation:
The filter panel layout classes

Three table groups in the filter panel

There is a table group for each loaded table. The table group header is hidden when there is only one table.

The Filter panel illustrated to the left holds two data tables and a filter group.