How to Work with Subsets


  1. In the Visualization Properties dialog, go to the Subsets page.

  2. In the Select subsets to compare list, select the check boxes for the subsets you want to show in the visualization.

  3. Comment: The subset named Current filtering is selected from the start, since showing the current filtering is the default behavior in visualizations.

  1. In the Visualization Properties dialog, go to the Subsets page.

  2. Select Add > Marking... to add a new subset.

  3. Response: The Add Marking Subset dialog is opened.

  4. If more than one marking exists in the analysis, select which one to base the subset on in the Marking drop-down list.

  5. If you want the subset to show what is not in the selected marking, instead of what is in the marking, select the check box Use the complement of this subset.

  6. Select whether or not it should be possible to mark and highlight items in the subset.

  7. Specify a descriptive Display name for the subset. The display name will be used to identify the subset in the visualization. For example, in the legend or in trellis panels.

  8. Click OK to close the dialog.

  9. Response: The subset has now been added to the visualization.

    Tip: You can specify how the visualization should handle empty subsets. See Empty Subsets to learn more.

  1. In the Visualization Properties dialog, go to the Subsets page.

  2. Select Add > Filtering Scheme... to add a new subset.

  3. Response: The Add Filtering Scheme Subset dialog is opened.

  4. If more than one filtering scheme exists in the analysis, select which one to base the subset on in the Filtering Scheme drop-down list.

  5. If you want the subset to show what is not in the selected filtering scheme, instead of what is in the filtering scheme, select the check box Use the complement of this subset. This means that when you filter out data in the specified filtering scheme, then this subset will show the filtered out data.

  6. Select whether or not it should be possible to mark and highlight items in the subset.

  7. Specify a descriptive Display name for the subset. The display name will be used to identify the subset in the visualization. For example, in the legend or in trellis panels.

  8. Click OK to close the dialog.

  9. Response: The subset has now been added to the visualization.

    Comment: You can specify how the visualization should handle empty subsets. See Empty Subsets to learn more.

  1. In the Visualization Properties dialog, go to the Subsets page.

  2. Select Add > Custom Expression... to add a new subset.

  3. Response: The Add Custom Expression Subset dialog is opened.

  4. Click on the Edit... button.

  5. Response: The Custom Expression for Subset dialog is opened.

  6. In the Expression field, specify the custom expression you want the subset to be based on.

  7. When done, click OK.

  8. Select whether or not it should be possible to mark and highlight items in the subset.

  9. Specify a descriptive Display name for the subset. The display name will be used to identify the subset in the visualization. For example, in the legend or in trellis panels.

  10. Click OK to close the dialog.

  11. Response: The subset has now been added to the visualization.

The Complement of a Subset

As mentioned above, when adding subsets based on a marking or a filtering scheme you can choose to use the complement of the marking or filtering scheme. This means that the subset will show what is not in the selected marking or filtering scheme, rather than what is in them. For example it might be useful to compare what is marked in a visualization to what is not marked in the same visualization.

Example:

The bar chart on the left-hand side below uses a marking named 'Marking', and the bar chart on the right-hand side is made up of two subsets based on that marking. The subset named 'Selected states' shows the aggregated value of the bars that are marked in the bar chart to the left. The subset named 'Rest' shows the aggregated value of all the bars that are not marked in the bar chart to the left; that is, the complement of the marking.

subsets_example_marking.png

See also:

What are Subsets?