Add a filter to a dataset (Power BI Report Builder)

APPLIES TO: Power BI Report Builder Power BI Desktop

Add a filter to a dataset to limit the data in a report after the data is retrieved from an external data source. When you add a filter to a dataset, all data regions use only data that matches the filter conditions.

To add a filter, you must specify one or more conditions that are filter equations. A filter equation consists of an expression that identifies the data that you want to filter, an operator, and the value to compare to. The data types of the filtered data and the value must match. Filtering on aggregate values for a dataset is not supported.

Add a filter to an embedded dataset instance

  1. Open a report in report design mode.

  2. Right-click a dataset in the Report Data pane and then select Dataset Properties. The Dataset Properties dialog box opens.

  3. Select Filters. This displays the current list of filter equations. By default, the list is empty.

  4. Select Add. A new blank filter equation appears.

  5. In Expression, type or select the expression for the field to filter. To edit the expression, select the expression (fx) button.

  6. From the drop-down box, select the data type that matches the type of data in the expression you created in step 5.

  7. In the Operator box, select the operator that you want the filter to use to compare the values in the Expression box and the Value box. The operator you choose determines the number of values that are used from the next step.

  8. In the Value box, type the expression or value against which you want the filter to evaluate the value in Expression.

    For examples of filter equations, see Filter Equation Examples (Report Builder).

  9. Select OK.