Guia do Usuário do Cliente Web Spotfire®

Grouping from marked categories

Sometimes a column contains many categorical values, but some of them are not important to display as separate values. Then you can group them in a new categorical value.

For more information, see Grouping categories.

Procedure

  1. In the visualization, mark items you wish to group.
  2. Right-click the visualization, and select Group from marked categories.
    The Group from marked categories dialog opens.
  3. In the drop-down list, select the column containing the values to group.
  4. Verify that the selected column is used on the correct axis in the visualization, and that the correct values are selected.
  5. Give the group a name.

Results

A new column containing the new group replaces the previously used column on the axis.
Note: Grouping can be undone, see Ungrouping categories.

Example

The example shows first how to group categories split by the Color by axis and then how to group categories split by the category axis.



In the bar chart above, weekly sales figures are displayed, split per country. As sales figures in Austria, Denmark and France are quite low in comparison to Germany and Poland, you want to gather them in a group. To point out these countries, mark their segments. (Below, the countries are marked in the left bar, but you can mark country segments in any bar.) Note that each bar segment represents data split by both week and country.

Then right-click the visualization, and select Group from marked categories. Since each of the marked segments is determined by Week as well as Country, you have the option to choose from which of these columns you wish to group values. This time select Country:

The grouped countries are here named "Other". See the result with the new grouped column applied on the Color by axis:


Group by color
If you wish to group weeks instead of countries, say W1 and W2, mark segments with these values. (You can mark any segment in the W1 bar, or the entire bar, and any segment/the entire bar in the W2 bar.)

Then right-click and select Group from marked categories.
group by category axis
Here the values to group are retrieved from the Week column, and the created column grouping W1 and W2 is applied on the category axis.
group by category axis