Combining two or more filters into a single filter

You can combine two or more filters into one single filter. For example, if you have one filter that returns tasks that have been assigned a particular code, and a second filter that returns tasks that have been completed, you can now combine these two filters into a single filter that returns tasks that have been assigned a particular code and that have been completed.

When you combine multiple filters, their properties are copied into the new combined filter and the original filters are left unaltered.

You can combine filters when working in the bar chart and when working in Library Explorer.

Combining multiple filters when working in the bar chart

When working in the bar chart, if one filter is applied to the current view, you can combine another filter with this filter to create a new filter that combines the properties of both individual filters.

To combine another filter with the filter that is currently applied to the current view:

  1. Ensure that a filter is applied to the current view.
  2. On the View tab, in the View Data group, click the Filter command and select Combine with, then select the filter that you want to combine with the current filter from the menu that appears. The Filter Properties dialog appears. The criteria of both filters displayed in the Filter criteria grid - unless the criteria of one or both of the filters has been defined using a TQL statement, in which case the Use an SQL statement check box is selected.
  3. Enter a name for the new combined filter in the Name field, and edit the properties of the new filter as required. You can edit the criteria of both of the filters that have been combined into this new filter without this affecting the original individual filters. If the Use an SQL statement check box is selected, you edit the criteria by clicking the SQL button and editing the TQL statement that appears.
  4. If you want the new filter to appear on the Filter menu, select the Display on menu check box.
  5. Click OK.

The new filter is created and is applied to the current view automatically.

If you want to combine a further filter with the new combined filter, follow the steps above to combine another filter with it.

Combining multiple filters when working in Library Explorer

When working in Library Explorer, you can combine any number of filters together to create a new filter that combines the properties of all the individual filters.

To combine multiple filters when working in Library Explorer:

  1. Within Library Explorer, display the Filter library.
  2. Holding down CTRL, click the filters that you want to combine into a single new filter.
  3. Right-click one of the selected filters and select Combine Filters from the menu that appears. The Filter Properties dialog appears. The criteria of both filters displayed in the Filter criteria grid - unless the criteria of one or both of the filters has been defined using a TQL statement, in which case the Use an SQL statement check box is selected.
  4. Enter a name for the new combined filter in the Name field, and edit the properties of the new filter as required. You can edit the criteria of each of the filters that have been combined into this new filter without this affecting the original individual filters. If the Use an SQL statement check box is selected, you edit the criteria by clicking the SQL button and editing the TQL statement that appears.
  5. If you want the new filter to appear on the Filter menu, select the Display on menu check box.
  6. Click OK.

Related Topics:

Filtering for specific bars and tasks

Categorising filters

Applying and editing filters

Using a filter to search for bars and tasks