Power BI Slicer se usa comúnmente para agregar 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 al lienzo o para mostrar filtros en el lienzo del informe. Permítame mostrarle cómo crear un Slicer en Power BI con un ejemplo.

For this Power BI Slicer demo, we will use the SQL data source that we created in our previous article. Therefore, see the article Connect Power BI to SQL Server to understand the Power BI data source.

Cómo crear una segmentation"Segmentación" por definición significa descomponer en fracciones de menores dimensiones un grupo y se aplica a distintos ámbitos: • En biología, una lombriz se compone por distintos segmentos • En literatura, las palabras, las frases se dividen en segmentos y unidades menores • En IT la memoria además se divide en muchos segmentos • En economía, el término segmentación de mercado se basa en productos y clientes Criterios de Segmentación plus de Power BI

Usaremos esta página para demostrar los pasos involucrados en la creación de un Power BI Slicer. Esta página contiene 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 apiladas, gráfico de columnas agrupadas y gráfico circular.

power-bi-slicer-1-8362393<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-slicer-1-8362393

To create a Slicer in Power BI, first drag and drop the fields you want to use as a filter onto the region of the canvas.

In this example, we want to use Country as the filter for this report. So, let me drag the Country from the Geography table to the Canvas. It will automatically create a map for you.

power-bi-slicer-2-2509397

Click on the Slicer below the Display section. It will turn a map into a Slicer. In the screenshot below, you can see the list of countries.

power-bi-slicer-3-7392827

Create a Power Bi Slicer 2 Approach

First, click on Slicer under the Display section. Automatically create a Slicer with dummy data, as shown below.

power-bi-slicer-4-9653458

To add data to a Slicer, drag and drop the filter field into the Fields section. Let me add Country to Fields section.

power-bi-slicer-5-4047152

For the purpose of demonstration, let me select the United States. In the screenshot below, you can see that the stacked column chart, pie chart, and clustered column charts show US sales.

TIP: By default, you can only select one field (country) at a time. For multiple selection, you need to toggle the Single Selection option from On to Off in the format section.

power-bi-slicer-6-7242711

This time we select the UK. In the following screenshot, you can see that the filter was applied on all charts.

power-bi-slicer-7-1343088

How to format Power BI Slicer

Click on the Format to see the list of formatting options that are available for this Power BI Slicer.

power-bi-slicer-8-4849946

Format Power BI Slicer General Settings

Use this general section to change the outline thickness, outline color, X, Y position, width and height of a cutter

power-bi-slicer-9-2523925

Format a slicer header in Power BI

As you can see in the screenshot below, we added Background Color, Outline at the bottom. Next, we change the text size to 20 and the font family to Georgia.

power-bi-slicer-10-4587797

Format Power BI Slicer Items

We changed the font color of the elements (countries) to green, the text size to 20 and the font family to Georgia.

power-bi-slicer-11-5960899

Format Cutter Title

By toggling the Title of Off to In, You can add a title to the Slicer.

In the screenshot below, you can see that we added the title text as a country cutter in Power BI. Then change the font color to red, the title alignment to center, the font family to Georgia, and the text size to 19.

power-bi-slicer-12-9004344

Format Power BI Slicer Borders and Background Color

You can add the background color to a cutter by alternating Background option a In. For demonstration purposes, we added a random color with a 66% of transparency.

Similarly, you can add Edges to a cutter by toggling the Border option of Off to In.

power-bi-slicer-13-4845995

Format cutter selection control

The Selection Controls section helps you format the Power BI targeting selection control. This section has two properties:

  • Show Select All: Adds Select All option to cutter.
  • Unique selection: Restricts the cutter selection to one item at a time.
power-bi-slicer-14-4795654

Let me toggle the Show Select All option from Off to On. Now, you can see Select All in the Country Slicer

power-bi-slicer-15-4650609

Toggling Unique selection option from Enabled to Disabled, you can enable segmentation to select multiple fields.

power-bi-slicer-16-7681303

Let me select Australia, Germany, the United Kingdom, and the United States.

power-bi-slicer-17-4943178