Filter

<< Click to Display Table of Contents >>

Navigation:  Reference > Transforms >

Filter

Description

Removes rows based on number, date and text values in selected columns.

 

Examples

Remove rows where all values are empty.

 

how to filter empty rows example

 

Keep only rows where the 'Tax' value is greater than 0 and the 'Country' value is 'US'.

 

how to perform conditional filtering example

 

Inputs

One.

 

Options

Click the add-button@1x button to add a new filter criteria.

Click the remove-button@2x button to delete the selected filter criteria.

Click the clipboard-arrow-right-circle_2@1x button to copy terms to the clipboard.

Click the clipboard-arrow-right-circle@1x button to paste terms from the clipboard.

Click the cancel@1x button to clear all terms.

Select Keep if you want to keep matching rows and Remove to remove matching rows.

Select Matching all to match on all criteria (e.g. criteria 1 and criteria 2). Select Matching any to require a match on one or more criteria (e.g. criteria 1 or criteria 2).

Set Column to the column you wish to match.

Set Op. to the comparison operator.

Set Value to the value you wish to compare. You can use a column variable.

Check case sensitive to use case sensitive matching for text.

Check disable filtering to turn off filtering. If sampling is disabled, the transform does nothing.

 

Notes

A filter row is ignored if the Value column is empty , except when Op. is Equal to, Not equal to, Matches regex or Doesn't match regex.

Number, date and text values are treated differently for Equal to, Greater than, Less than, Greater than equal, Less than equal and Not equal to operations. Any values that can be converted to a number will be treated as a number. Any values that match the supported date formats in Preferences will be treated as a date.

All values are treated as text for Contains, Starts with, Ends with, Matches regex, Is not, Doesn't start with, Doesn't end with and Doesn't match regex operations.

Comparisons of text are whitespace sensitive. Cells with whitespace will not match Is empty. You can use Whitespace to remove whitespace before filtering and Replace to get of other unwanted characters (e.g. whitespace inside the text).

See here for more details on Regular expressions (regex).

Y can use Subtract to see rows removed by filtering if there is unique key column.

 

Show rows removed by filter

 

If you are pasting in filter terms, the format expected is comma delimited text with 3 columns.

oThe first column is the 0-based index of the Column drop-down list.

oThe second column is the 0-based index of the Op. drop-down list.

oThe third column is the Value.

For example, pasting in:

 

0,0,YES

 

Will add:

 

filter-paste-example

 

You can also try copying terms to the clipboard and pasting into a text file to see the format. If you only paste in 1 column of text, it will be assumed to be a list of Value. You can, of course, use Easy Data Transform to create the appropriate filter terms and paste them into memory.

 

See also

Compare Cols

Slice