You can combine columns based on set operations such as Union or Intersect. By combining columns, you create a column for displaying the data in a different way. Most people don’t need to perform this task.
For example, you can combine a Region column with a City column and create a column named Regions and Cities.
The analysis must meet certain criteria if you want to use set operations:
The number and data types of the columns must be the same.
You can’t use hierarchical columns, selection steps, or groups when you combine criteria.
- Open the analysis for editing.
- On the Analysis Editor: Criteria tab, in the Selected Columns pane toolbar, click Combine results based on union, intersection, and difference operations.
The Set Operations area is displayed in the Selected Columns pane. Note the boxes with the dotted line borders. These boxes indicate the kind of column that you must combine with those that you have previously included in the analysis.
- In the Subject Areas pane, select the columns to combine with the original columns. Note that the dotted line borders and contents have been replaced.
- In the Result Columns area on the Set Operations pane, click on the Union button and select a set operation. The following table describes the operations.
Specifies that only nonduplicate rows from all columns are returned.
Specifies that rows from all columns, including duplicate rows, are returned.
Specifies that only rows common to all columns are returned.
Specifies that only rows from the first column that aren’t in the second column are returned.
- Click the Result Columns link. The Selected Columns pane shows the newly combined columns.
- To rename the heading of the column:
- Click the Options button for the column.
- Select Column Properties.
- Select Column Format.
- Ensure that Custom Headings is selected.
- In the Column Heading box, enter the new heading.
- Click OK.
- Click the Results tab to view the columns in a table view.