Skip to main content




¿Cómo crear filters de Power BI en medidas con un ejemplo? Los filtros de medidas de Power BI se utilizan para filtrar las medidas (valores de métricas). Por ejemplo, podemos usar filtros de Power BI en medidas para mostrar los productos con ventas superiores al umbral o inferiores al promedio, etc.

How to use Power BI filters in measures

Para demostrar los filtros de medida en Power BI, usaremos el gráfico de bars que creamos en nuestra publicación anterior. Como puede ver en la captura de pantalla de Power BI a continuación, usamos el nombre de la provincia del estado como un campo de eje. Y usamos el monto de ventas como un campo de valor y la cantidad de pedido como saturación de color.

power-bi-filters-on-measures-1-5857032<>power-bi-filters-on-measures-1-5857032

In the Filters section, you can see the list of Power BI filters available on measures.

power-bi-filters-on-measures-2-4013174

Let me expand the sales amount to see the filter options. The following is the list of options that are available for measure filters in Power BI.

  • Show items when value: Select the operator you want to use.
  • Empty text box: Specify the value.
  • And me: Same as the AND and OR SQL operators. Use this to concatenate multiple filters.
  • Empty dropdown list: Select the second operator you want to use.
  • Empty text box: Specify the value of the second filter.
power-bi-filters-on-measures-3-4410471

Here is the list of Power BI filter options on measures available in the Show items when value section:

  1. it's less than: When this option is selected, it verifies each record with the Value. Y si es menor que el valor especificado por el Username, entonces se muestra el registro.
  2. is less than or equal to: If it is less than or equal to the given value, then the record is displayed.
  3. is greater than: Shows records whose sales amount is greater than the specified value
  4. is greater than or equal to: Shows records whose sales amount is greater than or equal to a given value.
  5. is: If the record exactly matches the value, then the registration screen.
  6. It is not: If the record is not equal to value, then the registration screen.
  7. it is blank: Show all records with blank values.
  8. not blank: Shows all records that do not contain blank values.
power-bi-filters-on-measures-4-4938958

For this purpose of demonstrating measure filters in Power BI, we select is greater than as operator and 1000000 as value.

power-bi-filters-on-measures-5-9934802

The following report shows the statuses whose Sales Amount is greater than 1,000,000.

power-bi-filters-on-measures-6-3951475

Let me change the operator to it's less than and value as 1000. In the image below, you can see that the report shows the statuses whose sales amount is less than 1000

power-bi-filters-on-measures-7-9529734

This time we are using the it is blank operator. You can see that the report is blank because we do not have any status that contains blank sales.

power-bi-filters-on-measures-8-5479230

Let me use several filters on the Sales Amount column. The first filter searches for states with sales greater than 300,000, and the second filter searches for states with sales less than 2,300,000.

We use the AND operator to join those two filters

power-bi-filters-on-measures-9-2744828

In the screenshot below, you can see that the report shows the statuses whose sales amount is greater than 300000 and less than 2300000.

power-bi-filters-on-measures-10-8462934

The report below shows the statuses whose sales amount is greater than 300,000 or the sales amount is less than 1,000.

power-bi-filters-on-measures-11-5884958