¿Cómo crear filtersConcepto de Filtros¿Qué son los Filtros?Los Filtros son unos mecanismos que, sea en el campo de la informática o en el de las páginas web, se usan para establecer qué tipo de contenidos se deben visualizar o mostrar por pantalla, o cuáles no deben aparecer. Es algo que se emplea en numerosos lugares con fines muy distintos, pero que siempre tiene como objetivo perfilar la búsqueda para acertar mejor con plus 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 barsLas trailing slashes son las barras que aparecen al final de una URL ( "https://es.ryte.com/" ) y representan un directorio. Si la URL no finaliza con una barra representa un archivo. No obstante, esto son solo guías, no un requerimiento. No obstante, usar una barra como representación de un directorio ha sido aceptado como estándar con el tiempo. Uso de las barras "https://es.ryte.com/" y SEO A pesar de que dichas plus 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<noscriptNoScript es un complemento del navegador para Mozilla Firefox, que impide que se cargue en las páginas web contenido como JavaScript, Flash o iFrames. Su objetivo es incrementar la seguridad durante la navegación y quitar la promoción comercial más molesta al cargar sitios web. El términoNoScript tiene un significado distinto en la programación HTML. Cuando JavaScript está desactivado, la etiqueta <noscript> o </noscript> asegura que el usuario pueda ver el plus>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. And if it is less than the value specified by the user, then the record is displayed.
  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