Grouping from documents and the segmentation#
You do not need to go to the Groupings page to create a grouping: you can create or edit it from the cube and chart viewers, from the field trees of the segmentation and the wizards, and from the ranges of a condition. In all cases the same dialog opens, explained in Creating and editing a grouping.
Before you start#
- You need Workbook administration and to see the dimension. Without that privilege, these options do not appear.
- In the viewers, the document has to be opened from a workbook. In the portal and in a document embedded in another application they are not offered.
From the cube viewer#
Group values#
- If you want to start with some values already in place, choose them in the headers of the same dimension of the rows or columns: Ctrl and click (⌘ and click on Mac) adds or removes a header, and Shift and click (or Shift with the arrow keys) chooses all those between the last one clicked and this one. A click without keys stops choosing.
-
Open the dimension menu and choose Group values….
New grouping opens with that dimension. What it has in place depends on the dimension (see the table below).
-
Complete the grouping and click Create grouping.
- The application asks Add “…” to the cube?: “It is placed in front of “Zona” and the cube is recalculated. The document does not change until you save it.”.
- Add and recalculate puts the grouping in the cube, in front of its dimension, and recalculates it. To keep it, save the document.
- Not now leaves the cube as it was; the grouping is saved and available.
| Dimension | With what was chosen in the headers |
|---|---|
| Lookup or text | The chosen values go into a first bucket, “Bucket 1”. The status area says so: “3 values in “Bucket 1”: rename it with F2 and spread the others.”. |
| Number or date | A grouping by ranges is proposed, with one range for each stretch of consecutive chosen values (see “Proposed ranges”, below). |


Proposed ranges#
For a number or a date, the chosen values make no sense individually, so they are proposed as ranges:
- They are sorted from lowest to highest and one range is formed for each stretch of consecutive values. Two values are consecutive if there is no other value between them among those shown in the cube.
- Each range starts at the lowest of its stretch (included) and ends just after the highest: the highest plus one unit of the dimension (1, or the last decimal digit if it has decimals; one day for a date without a time; one second with a time).
- If the date is shown by years, each range goes from January 1 of the first year to January 1 of the year after the last.
- If the date is shown by half-years, quarters, months or weeks, no range is proposed, because those parts group all years. The dialog says so (“A quarter groups all years: with the chosen values there is no date range to propose. Type the ranges of the date.”) and you type the ranges.
Review the ranges and their names before saving.
Edit a grouping of the cube#
- Open the menu of the grouping in the cube and choose Edit grouping….
- Make the changes and click Save.
- The application asks Recalculate the cube with “…”?, because the cube shows the grouping as it was when it was calculated. Recalculate calculates it again with the current buckets; Not now leaves it as it is.
More about the cube viewer in Cubes.
From the chart viewer#
In a chart, Group values… and Edit grouping… are in the menu of the value and series fields, and in the menu of a point (“Group values of “…”…”). From a point, the new grouping has the value of that point; from the field, the values shown if the field is filtered.
In a chart there is no “in front”: the grouping replaces its dimension in the field, and the dimension becomes the next step of the drill-down. See Charts.
In a map you can edit the grouping compared by a comparative theme, but not group: a grouping is never the geographic dimension. See Maps.
From the field trees#
In the dimension tree of the segmentation editor and in those of the cube, chart and map wizards, the right-click menu of a node (or Shift+F10) offers:
- New grouping… on a dimension that accepts groupings;
- Edit grouping… on a grouping you can change.
In the segmentation editor, the criteria window of a grouping also has the Edit grouping… link. When you save, the tree is read again and the grouping appears under its dimension (“Grouping “…” saved: it is under “…”.”).
From a condition with ranges#
If you have already narrowed down a dimension with several ranges, you can turn them into a grouping to see the results spread across them:
- In the segmentation, edit the condition of a numeric or date dimension.
-
In Edit conditions, click Create grouping with these ranges….
New grouping by ranges opens with those of the condition. Below it says how many it has brought (“2 ranges from the condition”).
-
Name the grouping and its buckets and click Create grouping.
The grouping appears under its dimension. The condition does not change.
The button is offered with is between (each range), is greater than, is less than and their “or equal to” variants (an open range) and is equal to (one range per value). In the condition, the “to” is included; in the grouping, it is not, so the unit of the dimension is added to it: “from 1000 to 3000” becomes “from 1000, to 3001 exclusive”.
The button is disabled, with the reason next to it, when:
| Reason | What to do |
|---|---|
| “The ranges overlap (…): in a grouping each record goes to a single bucket.” | Correct the ranges so that they do not share values. |
| “Dynamic dates change every day: a grouping by ranges uses fixed dates.” | Use static dates. |
| “The condition compares a part of the date (the year, the quarter…): a grouping by ranges goes on the whole date.” | Compare the whole date. |
| “Range … is reversed or empty.” | Correct its ends. |
| “Type a range first.” | Complete the condition. |
With other operators it is not offered.