Filtering a Column in a Browser Window - MapInfo_Pro - 2023

MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
ft:locale
en-US
Product name
MapInfo Pro
ft:title
MapInfo Pro Help
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:39:16.995000

Right-clicking on a column displays a pop-up menu from which you can select the Filter option. A filter may consist of up to two conditions where each condition is built from a simple set of operations (such as equals, greater than, and so on) and some set of values. After applying a filter to a column, an icon displays in the column header to let you know that the column has a filter. There is a limit of 100 filters per Browser window. Each new column filter is appended to the previous filters to produce fewer records in the current view.

When sorting or filtering the contents of a Browser window, some restrictions apply to the special columns ROWID and OBJECT:

  • The ROWID column cannot be used with any of the sorting or filtering menu items.
  • The OBJECT column can be sorted as though it were a character column (A to Z or Z to A); ungeocoded rows appear as blank cells.
  • If you want to apply a filter to the OBJECT column, you must first modify the OBJECT expression in the Browser window. To do this, click the Pick Fields button and in the Fields in Table list, select Expression. In the Expression dialog box enter Str$(object) where object is the name of the column. This enables the Filter right-click menu, and you can continue with the instructions in this section.

To apply a filter to a column:

  1. Right-click on a column and select Filter from the pop-up menu.
  2. In the Filter dialog box, select the filter type from the drop-down list, such as Equals, Does not Equal, Contains, Does Not Contain, Begins With, Ends With, and Is Empty.

    In the textbox, enter the text to use for this filter. Do not use quotation marks or wildcard operators.

  3. Select either the And or the Or operator.
  4. From the Select an Operator drop-down list, select the type of operator to apply to this filter.

    in the textbox, enter the text to use with this operator.

  5. Click Apply to apply this filter to the data in the Browser window.

Clicking Reset in the Filter dialog box clears your selected parameters, but does not clear the applied filter.

Clicking Clear Filter in the Filter dialog box, clears the applied filter, so that you can start over again.

Clicking Close (or pressing the Esc key) closes the Filter dialog box without applying your selections.

The following table lists the data types that may be used with each operator type:

Data Type Operators

Character

  • Equals, Does not Equal
  • Contains, Does not Contain
  • Begins With, Ends With
  • Is Empty

Number (Integer, SmallInt, LargeInt, Float, Decimal)

  • Equals, Does not Equal
  • Greater than, Greater than or Equal to
  • Less than, Less than or Equal to

Date or Time (Date, Time, Date/Time)

  • Equals, Does not Equal
  • Is Before
  • Is After
  • Is Empty

Logical

  • IsTrue (Yes)
  • IsFalse (No)

The following are filter examples. To begin, you would display the Filter dialog box by right-clicking on a column and selecting Filter from the pop-up menu.

Simple text sort: I want to display only records that are for the city named Sidney. (Character sorts are not case sensitive and do not require quotation marks.)

  1. Select the Equals operator from the first drop-down list.
  2. Enter Sidney into the first textbox.
  3. Click Apply.

Text sort with wildcard matching: I want to display only those records containing the phrase "ing". (A wildcard operator, such as the asterisk * symbol, is not needed for wildcard matching.)

  1. Select the Contains operator from the first drop-down list.
  2. Enter ing into the first textbox.
  3. Click Apply.

Sort on date: I want to display only records where the last updated date is before Jan 1, 2011. (Ensure the date format matches that used in the Browser window, such as mm/dd/yyyy, mm/dd/yy, or dd-MMM-yyyy for example.)

  1. Select the Is Before operator from the first drop-down list.
  2. Enter 1/1/2011 into the first textbox.
  3. Click Apply.

Numeric sort: I want to display all records that are either high or low sales, my outliers. (You may use commas, decimal points, and minus signs when entering numerical text.)

  1. Select the Greater than or Equal to operator from the first drop-down list.
  2. Enter 5,000,000 into the first textbox.
  3. Select the Or radial button.
  4. Select the Less than or Equal to operator from the second drop-down list.
  5. Enter 10,000 into the second textbox.
  6. Click Apply.

Sort for records that are empty or begin with: I want to find all records where the Category field is empty or begins with "Earth".

  1. Select the Is Empty operator from the first drop-down list. The textbox is disabled, because they do not apply to this type of sort.
  2. Select the Begins With operator from the second drop-down list.
  3. Enter Earth into the second textbox.
  4. Click Apply.