

# Adding filter conditions (group filters) with AND and OR operators
Filter conditions

In analyses, when you add multiple filters to a visual, Quick uses the AND operator to combine them. You can also add filter conditions to a single filter with the OR operator. This is called a compound filter, or filter group.

To add multiple filters using the OR operator, create a filter group. Filter grouping is available for all types of filters in analyses. 

When you filter on multiple measures (green fields marked with \$1), you can apply the filter conditions to an aggregate of that field. Filters in a group can contain either aggregated or nonaggregated fields, but not both. 

**To create a filter group**

1. Create a new filter in an analysis. For more information about creating filters, see [Adding filters](add-a-filter-data-prep.md).

1. In the **Filters** pane, choose the new filter to expand it.

1. In the expanded filter, choose **Add filter condition** at bottom, and then choose a field to filter on. 

1.  Choose the conditions to filter on. 

   The data type of the field that you selected determines the options available here. For example, if you chose a numeric field, you can specify the aggregation, filter condition, and values. If you chose a text field, you can chose the filter type, filter condition, and values. And if you chose a date field, you can specify the filter type, condition, and time granularity. For more information about these options, see [Filter types in Amazon Quick](filtering-types.md).

1.  (Optional) You can add additional filter conditions to the filter group by choosing **Add filter condition** again at bottom.

1.  (Optional) To remove a filter from the filter group, choose the trash-can icon near the field name. 

1. When finished, choose **Apply**.

   The filters appear as a group in the **Filters** pane.