Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Filter web parts change the view of the data displayed in another web part based on certain criteria. For example, a Filter web part might cause a financial report to display only values from a specific year, or cause a list of students in a class to display only the names of students who have completed a particular assignment.

Filter web parts that require user input to create filter criteria (such as a date or text) display a filter icon on the page. Alternately, the Filter web part might operate automatically; it might not appear on the page, and might use criteria for filtering that are supplied from a third web part, such as a Current User filter. Filter web parts that are not visible on the page are called context web parts; they filter results automatically without user input.

Filter web parts work with SharePoint lists, data from Microsoft SQL Server versions 2005 and 2008 Analysis Services, and data that resides in the Business Connectivity Services.

In this article

Ways to use filters

The following scenarios illustrate two of the many ways that you can use Filter web parts:

  • Jeff Smith wants to communicate the revenue generated by a product on a monthly basis. Historically, Jeff viewed a SQL Server Analysis Services report produced by the Contoso Sales application, and then copied the information into an e-mail message to distribute it to his team.

    Now, Jeff adds the same SQL Server Analysis Services report to his dashboard on a monthly basis, along with a report that shows customer complaints by product. Jeff adds a Filter web part so that dashboard users can pick the product they are interested in. He sets up the filter to show a list of products, and he connects the filter to both the new customer complaints by product monthly report and the existing product revenue by month report. When his team members view the page, they can see data on the default product Jeff set for the reports, but they can also pick any product from a list. When a team member chooses a different product, the filter changes all of the data in each of the connected web parts.

  • Christina Lee, a regional sales manager, uses her division's dashboard to review monthly data. She notices that the customer satisfaction key performance indicator (KPI) is yellow, indicating it is in warning mode. She can click the indicator to go to a Web page that displays the indicator, an explanation of why it is yellow and three reports that provide additional insight.

    The filter displays only the page elements that apply specifically to Christina’s division. Other sales managers in Christina's company can view the same dashboard, but their view is different. The filter customizes each view for a particular division.

Top of Page

Types of filters

The type of Filter web parts you use and how you use them depends on your data source, the type of interaction you want from the user, and the results you want. There are nine types of filters provided with SharePoint Server 2007 and 2010, along with the Filter Actions web part, which enables you to add a filter button to a page so that users can choose when to refresh the data on the page.

The following Filter web parts allow users to specify the values manually that will filter the data displayed on the page:

Web Part

Description

Date Filter

You can provide a default or leave the value blank. Users can pick a date from a drop-down calendar or enter the m/d/yyyy value into the box displayed on the Web Part page.

Query String (URL) Filter

(Only available for SharePoint 2007)

Allows filters to be added to a URL when adding a link on a different page to the dashboard.

Text Filter

You can require users enter text and/or provide a default.

The following Filter web parts allow users to pick from a list of values:

Web Part

Description

Choice Filter

The choice filter allows you to specify values in the tool pane of the web part. Users select one of the values from a dropdown menu that appears on the page.

Business Data Connectivity Filter (SharePoint 2010)

Business Data Catalog Filter (SharePoint 2007)

This web part allows you to specify a list of values from the Business Data Catalog and then specify Value column. In addition, you can add a Description column.

For example, if the entity is Products the AdventureWorks application and the Value column could be Name. If you add a Description column, this Filter web part adds a picker dialog that enables the user to use a dropdown list to search for products by Description, Key, or Name.

SharePoint List Filter

When you configure this filter, you point to a SharePoint list and specify the value of a column, such as title, description, date, or document type. Users can browse to the list and then choose from the type of item you specify.

SQL Server Analysis Services Filter (SharePoint 2010)

SQL Server 2005 Analysis Services Filter (SharePoint 2007)

This filter allows you to select a data connection from a web part on the current Web page or from a SharePoint Data Connection library or Office Data Connection library. You then specify a dimension and hierarchy. Users can choose from the resulting list of values.

These Filter web parts automatically filter the data that displays on the Web page:

Web Part

Description

Current User Filter

Provides either the current user’s login name or a selected SharePoint profile property

Query String (URL) Filter

Passes a fixed value(s) from another source that you configure in the tool pane

Page Field Filter

Provides the value of a column on the list row that is associated with the current page

Top of Page

Using filters

There are three steps to using a filter:

  • Add the filter to the Web page

  • Configure the filter settings

  • (Optionally) Connect the filter to other web parts on the page

Add a Filter web part to a page

Adding a Filter web part to a page is similar to adding any other web part to a page. When using a filter that will request user input, consider the placement of the web part on the page. In addition, the name that you specify for the filter in the tool pane serves as the description on the page for the text box or menu.

Configure the filter settings

You configure the settings of your filter by using the web part tool pane. Each tool pane has different options depending on the type of filter you are setting up.

For more information about configuring the filter settings, see the following articles:

Connect the filter to other web parts on the page

You might have to connect the Filter web part that you use to another web part on the page. This might be the case when you use filters with Excel Web Access web parts. You can connect Filter web parts that are either visible or invisible to the user. A visible Filter web part may request input from the page viewer, such as selecting from a product list. An invisible Filter web part, such as the Current User filter, automatically filters the data in the target web part based on the person who is logged on to the computer.

When a filter is available that you can connect to another web part on the page, the Connections menu is visible from the web part menu. You can initiate a connection between the Filter web part and another web part on the page from either web part.

Top of Page

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×