Skip to content

Conditions by type of dimension#

Each dimension is narrowed down in a way that depends on its type: with written conditions in text, number and date dimensions, and by checking values in lookups, hierarchies and groupings. This page explains each criteria window of simple mode and the Edit conditions dialog.

Before you start#

Open the segmentation in the editor and choose the dimension in the tree (see The segmentation editor). The type of each dimension is decided by the metadata administrator and is shown by its icon and under its name, in the criteria window.

Text and numeric dimensions#

The criteria window shows one row per condition, written in words (“is greater than 1000”), with the Edit and Remove buttons. While it has none, it says “No conditions: this dimension filters nothing.”.

Add a condition#

  1. Click Add condition.

    The Edit conditions dialog opens.

  2. In Operator, choose the comparison.

  3. Type the value or values (see the table below).
  4. Click Apply.

    The condition appears as a new row. To change it, click Edit or double-click its text.

The Edit conditions dialog with the “is between” operator and two rangesThe Edit conditions dialog with the “is between” operator and two ranges
The Edit conditions dialog with the “is between” operator and two ranges

The operators#

Operator What it keeps Values
is equal to / is not equal to The records with that value / without it One or several, with Add value
is greater than, is less than, is greater than or equal to, is less than or equal to The records above or below the value One
matches the mask / does not match the mask The texts that fit a pattern, with % for any text and _ for one character: 28% are those that start with 28 One or several. Only in text dimensions
is in the list / is not in the list The records with any of the values / with none In the Values box, one per line
is between / is not between The records inside a range, or one of several ranges / outside all of them From and To per range, with Add range
has no value / has a value The records with the dimension empty / with some value None

Masks are not offered in numeric dimensions. Dates have their own operators and options: see Dates and dynamic dates.

Whether a mask distinguishes uppercase and lowercase is decided by the database, not by ECenter: madrid% may not find “Madrid” in some databases and find it in others. If you are not sure, ask your administrator.

Ranges#

With is between and is not between, each range has From and To, both included. Add range proposes the next one with the same width: after 1000 – 3000 it proposes 3001 – 5001. Remove deletes a range. Several ranges are joined with “or” (being in one is enough) with is between, and with “nor” (being in none) with is not between.

A range with From greater than To is not accepted (“The "from" value of a range is greater than the "to" value”).

Tip

If you want to see the results of a document spread across those ranges, click Create grouping with these ranges… in the same dialog. See Grouping from documents and the segmentation.

How the rows are combined#

The rows of the same dimension are combined like this:

  • of the positive ones it is enough that one is met (they are joined with “or”);
  • the negative ones (“is not equal to”, “does not match the mask”, “is not in the list”, “is not between” and “has a value”) are all met (they are joined with “and”).

Between one row and another you see the word that joins them, with its explanation on hover: “It is enough that one is met” or “All are met”. When there are rows of both kinds, the window reminds you: “Any of the positive conditions and all the negative ones are met”.

For example, “is greater than 1000”, “is less than 50” and “is not equal to 500” keep the values above 1000 or below 50, and never 500.

A dimension accepts up to 1000 conditions.

How values are written#

Type How
Number With a decimal comma or point: 1250,5. A value that is not a number is rejected (“'12a' is not a number”).
Text As it is. In the text of the row it is shown in quotes: 'Madrid'.
List of values One per line in Values. Empty lines and repeated values do not count.

Lookup dimensions: checkbox list#

A Lookup: checkbox list dimension shows its values with a checkbox each, with their description.

  1. Check the values you want.
  2. In Operation to perform, choose Include in the segmentation (only the checked ones go in) or Exclude from the segmentation (all go in except the checked ones).
  3. If you want to take into account the records without a value in this dimension, check (no value). With Include, the records without a value also go in; with Exclude, they are left out.

All checks the values shown and Nothing unchecks them. Below you see how many are checked.

To find a value, type in Search in the description…: the search is done on the server, anywhere in the description and without distinguishing uppercase. If the dimension has more than 1000 values, the window says so (“There are more than 1000 values: search to find the one you need.”).

A checked value that is no longer in the dimension table is shown as “(no longer in the auxiliary table)”. Uncheck it to remove it.

Under the values are the value tools.

The checkbox list of a lookup dimension with several values checked and Include in the segmentation chosenThe checkbox list of a lookup dimension with several values checked and Include in the segmentation chosen
The checkbox list of a lookup dimension with several values checked and Include in the segmentation chosen

Lookup dimensions: double list#

An Extended lookup: double list dimension is for dimensions with many values. On the left are the available values; on the right, the chosen ones, in the order you chose them.

  • To choose a value, double-click it, drag it to the right or select it and click Add ›.
  • To remove one, select it on the right and click ‹ Remove.
  • Search in the description… searches on the server. The values are read in pages: click Load more values to continue.
  • All chooses the values shown on the left and Nothing removes all the chosen ones.
  • Include in the segmentation, Exclude from the segmentation and (no value) work as in the checkbox list.

Under the available values are the value tools.

With the keyboard, each list is a single tab stop: the arrow keys move, the space bar selects, Shift with the arrow keys extends the selection and Ctrl+A selects everything. Enter or Insert in the left list adds the selected ones, and Del in the right one removes them.

Value tools#

Both lists of a lookup have three buttons underneath:

  • View weight puts to the right of each value shown how many records it has. It counts them in the dimension table with your universes, not in the base of each document: a document may have fewer.
  • Possible values only hides the values that have no records with the other criteria of the segmentation (without those of this dimension or the conditions on metrics). For example, with some provinces chosen, only the zones of those provinces remain. In the checkbox list, a checked value is not hidden.
  • Paste values… opens a window to paste codes, one per line (also separated by tabs or semicolons), at most 2,000. Those in the dimension table are added to what is chosen; of the others, the window says “They are not in the auxiliary table and are not added: …”. In a dimension with a composite key, separate the parts of each code with “|”.

The first two are calculated when you click them and follow the changes of the segmentation while they are active. Click them again to remove them.

Hierarchies#

A Hierarchy chains lookup dimensions in levels, for example Zona › Provincia › Municipio. Its window is a tree of values with checkboxes.

  1. Expand a value to see those of the next level. They are read when you expand it, in pages of 1000; if there are more, the last node of the branch is View more values (n read).
  2. Check the values you want, at the level you want. Checking “Norte” includes all its provinces and municipalities.
  3. Choose Include in the segmentation or Exclude from the segmentation.

The checkboxes have three states: checked, unchecked and partial, when only part of what is underneath is checked. All checks the values of the first level and Nothing unchecks them.

Unchecking a value that is inside another checked one replaces the one above with its other children. For that the application needs to have read all the children: if the branch is partial, nothing changes and it says so (“Not all the values of Centro have been read: read the others with “View more values” or uncheck Centro.”).

When the hierarchy opens, it expands by itself down to what was already checked.

Note

Hierarchies do not offer (no value) in simple mode. To check whether a level is empty, use an IS NULL condition in the advanced segmentation.

Groupings#

A grouping spreads the values of a dimension into named buckets (see Groupings). In the tree it hangs from its dimension and you segment by choosing buckets. Each grouping has an Other bucket (or with the name it has been given) with what is in no other bucket, also the records without a value.

Grouping by ranges#

Its buckets are shown with checkboxes, with the bucket for the rest at the end (“what is not in any bucket”). Check the buckets, choose Include in the segmentation or Exclude from the segmentation and use All and Nothing as in a checkbox list. Below you see how many buckets are checked.

Grouping by values#

Its buckets are shown in a bucket › values tree:

  • Checking a whole bucket chooses it with all its values, also those assigned to it later.
  • When you expand a bucket you see its values, which can be checked individually: the bucket becomes partial. They are read in pages; if there are more, the last node is View more values (read of total).
  • Under the tree, the search box of the last bucket expanded (Search in “…”…) searches on the server. Check the ones found checks the values found as individual values, and Clear the search goes back to the full list without changing what is checked.
  • The bucket for the rest is a checkbox that does not expand.

Which values you see in each bucket depends on your permissions. If you manage the grouping (you have Workbook administration), you see the values assigned to it. If not, you see the values that its records have within that bucket.

Individual values are, in fact, criteria of the grouped dimension, and the editor says so: “Individual values are criteria of “Zona”: they are also shown in that dimension.”. If the grouped dimension also has its own criteria, the window warns you that they are met at the same time as those of the grouping.

If the grouped dimension cannot be used in segmentations, the grouping is shown with checkboxes, like one by ranges, and it says so: “… cannot be used in segmentations: whole buckets are chosen, not their values.”.

A bucket that the segmentation uses and that no longer exists in the grouping is shown as “Bucket n (no longer exists)”, so that you can remove it.

The bucket › values tree of the grouping “Grandes zonas”, with a whole bucket and an individual value checkedThe bucket › values tree of the grouping “Grandes zonas”, with a whole bucket and an individual value checked
The bucket › values tree of the grouping “Grandes zonas”, with a whole bucket and an individual value checked

If you have Workbook administration and can change the grouping, the window offers Edit grouping…. In the dimension tree, the right-click menu (or Shift+F10) offers New grouping… on a dimension that accepts it and Edit grouping… on a grouping. When you save it, the tree is read again and the grouping stays chosen.

Dimensions with a composite key#

Some dimensions are identified with several columns, for example a level of a hierarchy (the province within its zone). In them you only choose values to include or exclude them, or check whether they have a value: they do not accept greater-than or less-than comparisons, ranges, masks or dynamic dates.

Empty values#

Where How the records without a value are narrowed down
Text, number and date With the has no value and has a value operators.
Checkbox list and double list With the (no value) checkbox, next to include or exclude.
Hierarchy Only in the advanced segmentation, with IS NULL or IS NOT NULL.
Grouping Not needed: the records without a value belong to the bucket for the rest.

Lists#

A list is chosen in the tree, in the list folder of its table, and is used in three states: List not used, include only the records that are in the list, or exclude all those that are in it. See Using a list in a segmentation.

See also#