A .gov website belongs to an official government organization in the United States.
A lock () or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.
TOPICS
2000 and Earlier
2010 Census
2020 Census
2030 Census
American Community Survey (ACS)
American Housing Survey (AHS)
Business Statistics
Data.census.gov
Economic Indicators
Foreign Trade
Geography / Maps
Glossary
Government Statistics
Housing
MQA
Not Sure
Open Government
Other Data Tools
People
Privacy Protections
Pulse Surveys
Voting Rights

Creating a custom filter allows you to keep the data rows in a table that meet certain criteria and remove all other data rows from your view. The two examples below show how to create custom filters, depending on the type of data contained in the filtered column.   

Example 1: Creating Custom Filters for Categorical Variables (and Dimensions)

For this example, we will filter table AB1700CSA01 from the Annual Business Survey to show data for businesses owned by people of Hispanic origin, following these steps:

  • Hover over the Meaning of Ethnicity code column and click the three horizontal bars

    Screenshot of table AB1700CSA01 on data.census.gov. It shows the user hovered over the column header "Meaning of Ethnicity Code" and clicking the 3 horizontal bars.
  • Click the Filter icon
  • Click the check box for (Select All) to deselect all options
  • Click the check box for Hispanic to select it
  • Click Apply in the lower right of the pop-up window to apply the filter

    Screenshot of table AB1700CSA01. It shows the user clicked into the filter icon, marking the "Select All" checkbox to deselect all options, and then marking the checkbox for "Hispanic." It then shows the user clicking the "Apply" button to apply the changes.
  • The table now shows data limited by your selected filter. If the variable you filtered is considered a non-key dimension, you will also see this change reflected in the URL. In this example &nkd=ETH_GROUP~020 is added to the URL after applying the filter. This means that if you revisit the table again later using the URL, it will take you to a view of the table that is already filtered by Hispanic ethnicity. Learn more about non-key dimensions in the
    FAQ: How Do I Save My Results or Search?


    Screenshot of table AB1700CSA01 on data.census.gov. It shows the table with filters applied to limit results to only the data rows where Ethnicity code is "Hispanic." With this filter applied, the URL contains a parameter that reads &nkd=ETH_GROUP~020

Example 2: Creating Custom Filters for Continuous Variables

For this example, we will filter a view of EC1700BASIC for NAICS 622 (Hospitals) in all states to show which states that have 50 or more hospitals:

  • Hover over the Number of Establishments column and click the three horizontal bars

    Screenshot of table EC1700BASIC on data.census.gov. It shows the user hovered over the column header for "Number of Establishments" and clicking the three horizontal bars.
  • Click the Filter icon
  • Because this is a continuous variable, you have more options to filter the data. Choose your desired option from the first dropdown menu: Greater than or equals
  • Enter the value you would like to filter by: 50
  • Click outside of the filter pop up box to return to the table view

    Screenshot table EC1700BASIC on data.census.gov. It shows the user applying filters to the number of establishments, including: (1) clicking the filter icon; (2) changing the drop-down menu to "greater than or equals"; (3) entering a value of 50.
  • The table now contains data rows for states only when there are 50 or more hospitals.

Email us at census.data@census.gov for any questions or comments you may have.  For more guidance on data availability and using data.census.gov, the Census API, and Microdata Access, visit our Resources page.

Send your question or a description of the issue you are facing to a Census Bureau support representative.
Have a live conversation with a Census Bureau support representative to get answers to your questions.

Monday - Friday, 8:00 AM - 5:00 PM ET, Except Federal Holidays.