Use the Power BI filter panel to restrict your report visuals to specific data subsets. You need a published report and a page with at least one visual to begin. The process involves selecting a visual, opening the filter pane, and choosing the fields you want to filter. This allows you to drill down from high-level totals to specific categories without altering the underlying data model.

What You'll Need

  • A Power BI account with access to a report or workspace.
  • A published Power BI Desktop report or a report in the Power BI service.
  • A report page that contains at least one visual.
  • At least one field (column) from your data model to use as a filter.

Step-by-Step

  1. Open the Report. Navigate to the Power BI service (app.powerbi.com) or launch Power BI Desktop. Open the report you wish to edit or view.
  2. Select a Page. Click the page tab at the bottom left of the canvas to ensure you are on the correct report page.
  3. Select a Visual. Click on any visual on the page (a bar chart, table, card, or map). The visual must be selected for the filter panel to display relevant options.
  4. Locate the Filter Pane. Look for the Filters pane on the right side of the screen. If the pane is not visible, click Filter in the View menu at the top ribbon to toggle it open. In Power BI Desktop, the pane is on the right by default; in the service, it is a collapsible panel on the right.
  5. Understand the Sections. The filter pane is divided into three main sections at the top, which control how filters are applied:
    • Visual Level Filters: Filters that apply only to the currently selected visual.
    • Page Level Filters: Filters that apply to all visuals on the current page.
    • Report Level Filters: Filters that apply to all pages in the report.
  6. Create a Visual Level Filter. In the Visual Level Filters section, click the Add a filter link (usually a plus icon) and select the field you want to filter on from the dropdown list. For example, if you have a field called Region, select it. A filter card or list will appear in the pane.
  7. Configure the Filter. Click on the filter card you just created to open the filter options. You will see a list of unique values for that field.
    • Individual Values: Click the checkbox next to the specific values you want to include. Power BI will show only those values in your visual. To exclude values, click the checkbox to select all, then deselect the values you want to hide.
    • Top/Bottom: Click on the Top/Bottom N option to filter by rank. You can choose to show the top N items by a measure (e.g., Sales) or filter to a specific rank range.
    • All Values: To remove the filter, click the X icon on the filter card, or uncheck the box in the top-left corner of the filter options.
  8. Create a Page Level Filter. Click on the Page Level Filters section. Click Add a filter and select a field. This setting will restrict the data shown on the page for all visuals. Note that if you have a visual level filter on the same field, the visual level filter takes precedence.
  9. Create a Report Level Filter. Click on the Report Level Filters section. Click Add a filter and select a field. This setting is the most restrictive and applies to every page and every visual in the entire report.
  10. Use the Quick Measure Filter. In the filter pane, you can also use the Quick Measure option to create a calculated filter. For example, you can filter by a count of rows or a sum of a measure that meets certain criteria.
  11. Apply Date Filters. If you have a date column, you can use the Date filter type. This allows you to filter by specific dates, relative dates (e.g., Last 30 days), or date ranges.
  12. Save Your Work. In Power BI Desktop, press CTRL+S to save the file. In the Power BI service, click Save in the top left corner to publish the changes.

Common Mistakes

One of the most frequent errors users make is confusing page level and report level filters. Applying a filter at the report level will affect every page in the report, which can sometimes be confusing if you are trying to drill down on a specific page. To avoid this, carefully consider whether you need a filter to apply to the entire report or just the current page.

Another common mistake is not selecting a visual before trying to create a filter. The filter pane only shows visual level filters if a visual is selected. If you try to add a filter without selecting a visual, the option will not be available or will default to report level.

Users also often forget to save their work. In Power BI Desktop, changes are saved to the file, but in the Power BI service, you must explicitly click save to publish your changes to the web.

Tips

Use the Clear Filters button on the filter pane to quickly remove all filters at a specific level. This is useful for resetting a page to its original state.

When working with large datasets, consider using the Top/Bottom filter option to limit the number of values displayed. This can improve performance and make your visual easier to read.

Use the Filter by Condition option to create more complex filters. This allows you to filter based on multiple criteria, such as filtering for sales greater than $1000 in the North region.

Be aware that filters are not case-sensitive in most cases, but it is still good practice to use consistent casing in your data.

Troubleshooting

If your visual is not updating when you change a filter, check to ensure that the filter is applied at the correct level. Visual level filters take precedence over page level filters. If a filter is applied at the report level, it will override all other filters.

If you are unable to see the filter pane, check the View ribbon in Power BI Desktop or the View menu in the Power BI service. Ensure that the Filter option is checked.

If you are seeing an error message when trying to add a filter, check to ensure that the field you are trying to filter on is available in the visual. Some fields may not be supported in certain visual types.

If your filters are not working as expected, try clearing all filters and then reapplying them one by one. This can help identify if there is a conflict between filters.

Frequently Asked Questions

Can I apply multiple filters to the same visual?

Yes, you can apply multiple filters to the same visual. For example, you can filter by Region and by Sales Amount. The visual will show data that meets all of the filter criteria.

What is the difference between a slicer and a filter?

A slicer is a visual that allows you to filter data interactively. It appears on the report canvas and can be used by anyone viewing the report. A filter is a setting that is applied to the report or page. Slicers are a type of visual, while filters are settings.

Can I use a measure as a filter?

Yes, you can use a measure as a filter. For example, you can filter by the sum of sales or the count of orders. This allows you to create dynamic filters based on your data.

How do I remove a filter?

To remove a filter, click on the filter card in the pane and click the X icon. Alternatively, you can uncheck the box in the top-left corner of the filter options.

Can I share my filters with other users?

Yes, you can share your filters with other users. In the Power BI service, you can pin filters to a dashboard or add them to a report. Users can then interact with these filters to filter their view of the data.

Do filters persist when I refresh the data?

Yes, filters persist when you refresh the data. However, if the data model changes significantly, you may need to update your filters.