Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Power BI Report Builder Filter: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To filter a report in Power BI Report Builder, you add a filter to the dataset, the data region (table, matrix, chart) or a specific group, then set a field, an operator and a value. Dataset filters remove rows before the report renders and are the most efficient option; data region filters narrow what a single table or chart shows; group filters control which groups exist. All three live in the same place: right-click the object, choose its properties, and open the Filters tab. Report Builder is a desktop authoring tool for paginated reports (the .rdl files published to Power BI), and it is separate from Power BI Desktop, so the Filter pane you may know from Desktop is not how you filter here.

What You'll Need

  • Report Builder installed on Windows (it is a free Microsoft download for Windows only; there is no mobile or Mac version).
  • A paginated report (.rdl) already open, with at least one dataset returning data and a table, matrix or chart bound to it.
  • Permission to publish to a Power BI workspace if the report is destined for the service.
  • Your Power BI dataset published and available through a shared data source or a Power BI dataset connection, if the report is built on Power BI data rather than a direct SQL query.
  • A clear idea of what the reader should be able to narrow, and whether you want that choice fixed by you or picked at runtime by the reader.

Step-by-Step

  1. Decide at which level the filter belongs. If the whole report should only ever show, say, one region or one year, put the filter on the dataset. If the report shows multiple things and only one table should be restricted, filter that data region. If you need to hide groups with no data or exclude a category from a group, filter the group. Menu labels and dialog wording can differ slightly by Report Builder version, but the structure below has been stable for many releases.
  2. Open the filters dialog. For a dataset, right-click the dataset name in the Report Data pane and choose Dataset Properties, then the Filters tab. For a table, matrix or chart, right-click the object and choose Tablix Properties or Chart Properties (or select it and use the Properties window), then the Filters tab. For a group, open the group's properties from the Row Groups or Column Groups pane and go to Filters.
  3. Add a filter expression. Click Add, then in the Expression box choose the field. You can pick it from the dataset fields list or type an expression such as =Fields!Region.Value. Keep the expression to a single field unless you really need a calculation.
  4. Choose the operator. Common choices are =, <>, >, <, Like, In, Between, Top N and Bottom N. Use In for a list of values, Between for a range with two value cells, and Top N when you want the largest or smallest records by a measure.
  5. Enter the value or values. Type a literal, pick a field, or use a parameter. For text, the value is treated as typed; for numbers and dates, use the format the underlying data expects, or an expression like =Today() for a moving date. Quote text values only if you are writing an expression, not in the plain value cell.
  6. Set the data type. Match the filter's type to the field (Text, Integer, Boolean, Date). A date field filtered with a text value is one of the most common reasons a filter silently returns nothing.
  7. Choose whether the filter is required. Tick the condition-required checkbox only if the filter must always have a value; if you want an empty value to mean "show everything", leave it unticked.
  8. Make it interactive with a parameter. If readers should choose the value, create a report parameter first (Report Data pane > right-click Parameters > Add Parameter), set its available values from a dataset or a list, then in the filter value box choose Expression and point to =Parameters!YourParameter.Value. A parameter set to allow multiple values can drive an In filter.
  9. Test in preview. Click Run on the Home tab. Change parameters if you added them and confirm the row count and totals respond. Check a case where the filter should return nothing, and a case where it should return everything.
  10. Publish and check the service. Save the .rdl, then publish to your Power BI workspace from the Report Builder menu. Open the report in the service and repeat the preview checks, because parameters and dataset connections can behave differently once deployed.

Common Mistakes

  • Filtering in the query instead of the report, then wondering why the parameter does nothing. If the SQL query is hard-coded to one value, no report filter can widen it.
  • Type mismatches. Filtering a number field with "100" as text, or a date field with a regional date string, can produce an empty report rather than an error.
  • Using the wrong quotes. String literals in expressions need double quotes; single quotes are not valid there.
  • Confusing filter with visibility. Hiding rows with a visibility expression is not the same as filtering; totals and aggregates may still include hidden rows depending on where the expression sits.
  • Case and spacing in text values. Unless you use an uppercase comparison, "north" and "North" are different values to many data sources.
  • Filtering a group when you meant to filter the dataset, leaving totals at report level still including the excluded category.

Tips

  • Filter at the dataset level when possible: fewer rows move through the report engine, so wide reports render faster.
  • Use =Today() or =DateAdd("d",-30,Today()) style expressions for rolling date windows so you do not have to edit the report each period.
  • Give parameters clear prompts and default values; a report that opens with a sensible default is easier to trust than one that opens blank.
  • Keep a small test report or a single dataset with known row counts so you can prove a filter works in seconds.
  • Where a filter is complex, add a comment in the expression or name the dataset clearly so a colleague can see intent later.

Troubleshooting

If the report shows no rows, first remove the filter and re-run preview to confirm the data itself arrives. Then re-add the filter and check the operator and data type. If a parameter filter returns nothing, verify the parameter's available values dataset returns rows and that the parameter name in the expression matches exactly, including case. If multiple values are expected, confirm the parameter allows multiple values and that the filter uses In rather than =.

If filtering a measure gives unexpected totals, remember that dataset filters remove rows before aggregation while data region filters remove entire groups after aggregation. Move the filter up a level and compare. If the published report behaves differently from preview, open the report's dataset properties in the service, check the data source credentials, and confirm the dataset connection points at the intended dataset. If a filter works for one user but not another, look at row-level security on the underlying dataset, which applies on top of your report filters.

Frequently Asked Questions

Does a Power BI Report Builder filter work the same as a Power BI Desktop slicer?

No. A slicer is an interactive visual on a Power BI Desktop report. Report Builder uses filter properties plus report parameters, and it produces paginated reports rather than interactive canvas reports.

Can readers change a filter themselves?

Only if you build it as a report parameter. A hard-coded filter value in the Filters tab is fixed for everyone who opens the report.

Can I filter on more than one field?

Yes. Add multiple filter rows; by default all conditions must be true, so a row is shown only when it passes every filter.

Why does my filter return blank instead of an error?

Report filters usually fail silently. Check the field's data type, the value format and any quotes in the expression before assuming the data is missing.

Can a filter be applied to only part of a table?

Yes, through group filters on a specific row or column group. That restricts that group without affecting the rest of the report.