Using a static filter (Video - 2:47) Follow


BarTender Content Team

Applies to: BarTender 2016 and higher
This video/article uses the following downloads:


A static filter, also known as a basic filter, is configured in Database Connection Setup, and  will always filter using the same criteria for the condition.  

Dynamic filters use criteria from a Query Prompt.  To learn how to create a dynamic filter please review Using a dynamic filter.  

For more information about filters please review the following resources:

Filtering Data

Filtering Data Using a Query Prompt


Creating a basic filter

Filters are added in the Database Setup.  The following exercise will walk you through filtering data using a sample Excel spreadsheet.


  1. Place Sample.xlsx in C:\Database Filter\
  2. Create a new BarTender document and create a database connection to Sample.xlsx.  Please review Getting started with database connections for help creating the database connection.
  3. Click File > Database Connection Setup
  4. Select Filter
  5. You should now see all the data since a filter has not been added yet
  6. Click the   icon to add a filter condition

The examples below show you various conditions that can be used to filter the data. 


Single Condition

If you only need to print records for Seattle, you can create a static filter that shows records whose City is Seattle.  

  1. Set the filter condition to City Equals Seattle and click Apply Filter
  2. You can see the result returns four records for Seattle


Multiple Conditions Using AND

We can add another condition to the filter using a conditional joiner AND so the filter returns results where the City is Seattle and the Part Number is AW1.

  1. Click the   icon to add another filter condition
  2. Set the second condition to Part Number Equals AW1 and click Apply Filter
  3. Now only two records are returned; all records where the City is Seattle and the Part Number is AW1.  Since we used the AND joiner, both of the conditions need to be satisfied for the record to be returned.


Multiple Conditions Using OR

If you want to show all results where either the City is Seattle or the Part Number is AW1, then you can change the AND joiner to OR.

  1. Click   and select OR
  2. Click Apply Filter.  Now seven records are returned; All records where the Part Numbers is AW1, and all records where the City is Seattle.  Since we used the OR condition, only one of the conditions needs to be satisfied for the record to be returned.



Do you have feedback or questions on this article? We encourage you to post them on our Community Forums