---
title: "Creating Advanced Filters Using \"And,\" \"Or,\" and \"Parenthesis\""
description: Understanding Boolean Operators to Create Advanced Filters
---

[Skip to content](https://help.samaritan.com/how-to-use-boolean-operators-in-filters#main-content)

English

Show submenu for translations

[Submit a support request](https://help.samaritan.com/kb-tickets/new?hsLang=en) [Customer portal](https://help.samaritan.com/tickets-view?hsLang=en)

![eCLogo.png\]](https://help.samaritan.com/hs-fs/hubfs/eCLogo.png?height=40&name=eCLogo.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Submit a support request](https://help.samaritan.com/kb-tickets/new)
- [Customer portal](https://help.samaritan.com/tickets-view)
- Go to samaritan.com

 Go to samaritan.com

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Samaritan Help Center](https://help.samaritan.com/?hsLang=en)
2. [Grids & Filters](https://help.samaritan.com/grids-filters?hsLang=en)

# Creating Advanced Filters Using "And," "Or," and "Parenthesis"

## Understanding Boolean Operators to Create Advanced Filters

There are several functions throughout the system that use Boolean operators including filters, automations, and prerequisites. Advanced filtering creates very specific groups of information to view or take action on. 

### Description

Boolean operators (AND, OR) allow you to form compound searches by combining two or more terms together. Parentheses allow you to group terms together. 

- **AND** *narrows* a search by finding records that *must contain all the terms* you have entered. Using **AND** lets you be more precise by adding additional required concepts.

**![](https://lh5.googleusercontent.com/-n75499LIPXckEMN9KJjuUuw_pbJh1H_war6mW_PkH1_396aVutYLEZ7vWt26NGGFc5dnSklQlRCnSDZELyHV-pX4n4LoYK3yeWmVJqEOl7UataufcO0qOI3vd9u3fG_4RMqVOGAdtnY0DQu-tNgA6IhWi-I2kKKspqiNqEga_4-RZCzT19URPl8hlL8-w)**

 

For example, to create a filter for volunteers who are active and live in Salt Lake City, add activity status is equal to active AND city equals Salt Lake City. The AND statement means that both things must be true. 

![](https://help.samaritan.com/hubfs/image-png-Dec-30-2022-07-50-54-8838-PM.png)

- **OR**broadens a search by finding records that contain *either or all of the terms* you have entered. Using **OR** makes your search wider by searching for similar or related terms.

**![](https://lh5.googleusercontent.com/0-NrhqE8f1q-Aqfa8MEJzSUGaCxdlk_ZDvWCDXkx9ACsAnAqZWWrf4g6ltcq_927OAH-r8hLWZlGB5BuQwXyysWjs47Lg5znksHratFCOWxGvLNzcVBVQftVqIyeSP6cUMRp-Zongv2ArPUHwqf_IvC9CkMe7HRw9KzVAntzh13PW70hzNVy7LmT8thYbg)**

For example, to create a filter for active and inactive volunteers add activity status is equal to active OR activity status is equal to inactive. The OR statement means that either can be true. 

![](https://help.samaritan.com/hubfs/image-png-Dec-30-2022-07-48-12-2483-PM.png)

- **Parentheses** form compound searches by giving you the ability to *group similar or related terms together*.

Your list might now look something like the following: 

| (Antony **OR** Cleopatra) | **AND** | (Shakespeare **OR** Shakespearean) |
| --- | --- | --- |

For example, to find volunteers that are active or inactive who live in Salt Lake City, add city equals Salt Lake City AND (activity status equals active OR Activity status equals inactive.) This advanced filter allows a user to find a very specific group of volunteers. 

![](https://help.samaritan.com/hubfs/image-png-Dec-30-2022-07-52-54-0706-PM.png)

 

Tip: It is a common error that many will try to use AND when they mean OR. If no results are displaying in the filter, reverse the Boolean operators to see if results display.  

Source: [Formulating Your Search Strategy: STEP 3: Boolean Operators](https://libguides.usask.ca/c.php?g=16394&p=90472#:~:text=Boolean%20operators%20)

- [What's New](https://help.samaritan.com/whats-new?hsLang=en)
- [Getting Started](https://help.samaritan.com/getting-started?hsLang=en#main-content)

    - [Account Basics & Setup](https://help.samaritan.com/getting-started?hsLang=en#account-basics-setup)
    - [Product Orientation & Basic Navigation](https://help.samaritan.com/getting-started?hsLang=en#product-orientation-basic-navigation)
    - [Record Management](https://help.samaritan.com/getting-started?hsLang=en#record-management)
- [Reports](https://help.samaritan.com/reports?hsLang=en)
- [Email & Text Messaging](https://help.samaritan.com/email-text-messaging?hsLang=en#main-content)

    - [Troubleshooting](https://help.samaritan.com/email-text-messaging?hsLang=en#troubleshooting)
    - [Automated Emails](https://help.samaritan.com/email-text-messaging?hsLang=en#automated-emails)
- [Opportunities](https://help.samaritan.com/opportunities?hsLang=en)
- [Grids & Filters](https://help.samaritan.com/grids-filters?hsLang=en)
- [Log Book](https://help.samaritan.com/log-book?hsLang=en)
- [Scheduling](https://help.samaritan.com/scheduling?hsLang=en)
- [Volunteers](https://help.samaritan.com/volunteers?hsLang=en)
- [Surveys](https://help.samaritan.com/surveys?hsLang=en#main-content)

    - [Build a survey](https://help.samaritan.com/surveys?hsLang=en#build-a-survey)
- [Sign-In Stations](https://help.samaritan.com/sign-in-stations?hsLang=en#main-content)

    - [Sign-In Station Basics & Setup](https://help.samaritan.com/sign-in-stations?hsLang=en#sign-in-station-basics-setup)
    - [How to build a Sign-In Station](https://help.samaritan.com/sign-in-stations?hsLang=en#how-to-build-a-sign-in-station)
    - [Attach a Sign-In Station to a Service Opportunity](https://help.samaritan.com/sign-in-stations?hsLang=en#attach-a-sign-in-station-to-a-service-opportunity)
    - [View and share a Sign-In Station](https://help.samaritan.com/sign-in-stations?hsLang=en#view-and-share-a-sign-in-station)
    - [Managing Sign-In Stations](https://help.samaritan.com/sign-in-stations?hsLang=en#managing-sign-in-stations)
    - [Troubleshooting Sign-In Stations](https://help.samaritan.com/sign-in-stations?hsLang=en#troubleshooting-sign-in-stations)
    - [New Features for the Sign-In Station](https://help.samaritan.com/sign-in-stations?hsLang=en#new-features-for-the-sign-in-station)
- [Advanced Topics](https://help.samaritan.com/advanced-topics?hsLang=en#main-content)

    - [User Defined Fields (UDFs)](https://help.samaritan.com/advanced-topics?hsLang=en#user-defined-fields-udfs)
    - [Automations](https://help.samaritan.com/advanced-topics?hsLang=en#automations)
- [Get Help](https://help.samaritan.com/get-help?hsLang=en)
- [Samaritan Import Data Tool](https://help.samaritan.com/samaritan-import-data-tool?hsLang=en)
- [Messaging](https://help.samaritan.com/messaging?hsLang=en)

[![Samaritan Technologies](https://help.samaritan.com/hs-fs/hubfs/Samaritan-Logo-Final-Horizontal.png?width=806&height=253&name=Samaritan-Logo-Final-Horizontal.png "Samaritan Technologies")](http://samaritan.com)

samaritan.com Help Center

Copyright © 2026, Samaritan