selectne
Select rows in a data extract that contain a value that does not match a given value.
Introduction
Use the selectne enrichment to find and remove rows from a data extract. The rows of the data extract that are an exact match of the entered values are removed. Rows that contains values that are not an exact match are kept. The search is not case-sensitive. This is the opposite of the selecteq enrichment.
Creating the enrichment
For more information on creating an enrichment, see Using custom scripts.
Configuring the enrichment
To configure the enrichment, fill in the following fields. Required fields are marked with an asterisk (*).
-
Field*
-
Enter the name of the column that contains the value used to identify which row to remove.
-
Select a column in one of the following ways:
-
Select String and enter the name of the column.
-
Select Integer and enter the position of the column in the data extract as an index value. Counting starts at 0. To select the first column, enter
0
. To select the second column, enter1
. To select the last column in the data extract, enter-1
.
-
-
Value*
-
Enter the value used to identify which row to remove.
-
Complement
-
Select this field to reverse the enrichment. Any rows that match the search criteria are kept and the rows that do not match the criteria are removed.
-
Subtable
-
Enter the name for a subtable that you want to contain the enriched data. The enrichment is applied to the whole data extract, then the enriched data is output into the subtable you have named here.
This subtable is a temporary table, which means it only exists for this custom script. You can apply additional instructions within the same custom script to the subtable. However, the subtable cannot be used in any other custom scripts.
Example
Enrichment configuration
-
Field*
-
Ad Group
-
Value
-
brand awareness
Data table before enrichment
Campaign |
Ad Group |
Clicks |
---|---|---|
Brand |
media |
7 |
Branding |
ecommerce |
3 |
Dashboard |
brand awareness |
18 |
Brand |
ecommerce |
4 |
Dashboard |
media|social |
5 |
Branding |
media |
11 |
Data table after enrichment
Campaign |
Ad Group |
Clicks |
---|---|---|
Brand |
media |
7 |
Branding |
ecommerce |
3 |
Brand |
ecommerce |
4 |
Dashboard |
media|social |
5 |
Branding |
media |
11 |