UX Revolution with Visual Level PAGINATION in Power BI

How to Power BI
13 Sept 202325:12

Summary

TLDREl script ofrece una guía detallada sobre cómo implementar la paginación en Power BI para visualizaciones con largas listas de elementos. Se explica cómo evitar desplazamientos interminables y proporcionar control al usuario para personalizar la cantidad de elementos por página. Se incluyen pasos para crear parámetros numéricos, medidas de rango y filtros para mostrar solo los elementos relevantes. Además, se discuten técnicas para mejorar la experiencia de usuario y se sugiere un curso para aprender a desarrollar informes de Power BI de manera efectiva.

Takeaways

  • 📊 La visualización de datos en Power BI puede requerir una paginación inteligente cuando hay una larga lista de elementos para mostrar.
  • 🔍 Si el espacio es limitado, en lugar de un desplazamiento interminable, se puede utilizar la paginación para mejorar la experiencia del usuario.
  • 🛠️ Se pueden crear parámetros numéricos en Power BI para permitir que los usuarios elijan cuántos elementos desean ver por página.
  • 🔢 Los parámetros numéricos también pueden usarse para permitir a los usuarios seleccionar el número de página al que desean navegar.
  • 📈 Es posible construir una medida en Power BI que clasifique los elementos visualizados basándose en el total de ventas o cualquier otra métrica.
  • 🎨 Se pueden utilizar técnicas de formato, como etiquetas personalizadas y mediciones auxiliares, para mostrar información adicional en las visualizaciones.
  • 📝 La medición 'item filter' es crucial para filtrar los elementos que se muestran en la visualización según las preferencias del usuario.
  • 🌐 La paginación y el filtrado se pueden ajustar para que no se muestren páginas vacías, mejorando así la interfaz de usuario.
  • 🖼️ El diseño de la visualización es importante para una experiencia de usuario agradable; se pueden ajustar los elementos gráficos y los controles de paginación para una mayor claridad y eficiencia.
  • 🔧 Se pueden utilizar medidas adicionales, como 'page filter', para ocultar páginas que no contienen elementos relevantes según el filtro seleccionado por el usuario.
  • 🔗 La integración de mediciones y parámetros en Power BI permite una personalización avanzada de las visualizaciones, dando control total a los usuarios sobre cómo consumen el contenido.

Q & A

  • ¿Qué problema se enfrenta al tener una larga lista de elementos en una visualización?

    -El problema es que, si no hay suficiente espacio, aparece una barra de desplazamiento y el usuario podría tener que desplazarse interminablemente para obtener las conclusiones que necesita.

  • ¿Qué alternativa se menciona para evitar desplazarse por una lista larga en una visualización?

    -Se menciona la paginación como alternativa, donde el número de elementos se divide en múltiples páginas y el usuario puede elegir cuántos elementos quiere ver por página.

  • ¿Quién es el presentador del video sobre Power BI?

    -El presentador del video es Buzz, quien enseña cómo utilizar Power BI en su canal.

  • ¿Cómo se crea un parámetro numérico de rango en Power BI?

    -Se crea un parámetro numérico de rango en Power BI yendo a 'Modeling', luego 'New Parameter', y seleccionando 'Numeric Range'. Se definen los datos, mínimo, máximo y los incrementos, además de un valor predeterminado.

  • ¿Qué función se utiliza para clasificar los elementos en una visualización en Power BI?

    -Se utiliza la función 'RANKX' para clasificar los elementos en una visualización en Power BI.

  • ¿Cómo se puede mostrar el rango de un elemento en una visualización de Power BI?

    -Para mostrar el rango de un elemento en una visualización, se puede crear una medida personalizada que devuelva el rango y luego usar esta medida como etiqueta de datos en la visualización.

  • ¿Qué se hace para filtrar los elementos mostrados en una visualización según el número de elementos por página y la página seleccionada?

    -Se crea una medida que utiliza las variables de usuario para determinar la página seleccionada y el número de elementos por página, y luego se usa esta medida para filtrar los elementos en la visualización.

  • ¿Cómo se mejora la experiencia de usuario al utilizar paginación en Power BI?

    -Se mejora la experiencia de usuario al permitir que el usuario elija cuántos elementos quiere ver por página y a qué página quiere ir, además de ajustar la apariencia de los controles de paginación para que se ajusten mejor al informe.

  • ¿Cómo se puede ajustar la apariencia de los controles de paginación en Power BI?

    -Se pueden ajustar la apariencia de los controles de paginación en Power BI cambiando su tamaño, posición, estilo y otros elementos de formato para que se integren mejor en el diseño del informe.

  • ¿Qué se puede hacer si el usuario quiere ver todos los elementos en una sola página en lugar de utilizar la paginación?

    -Si el usuario quiere ver todos los elementos en una sola página, se puede aumentar el número máximo en el parámetro numérico de rango para permitir una gran cantidad de elementos y así habilitar la barra de desplazamiento.

  • ¿Cómo se pueden ocultar páginas que no tienen elementos en la visualización de paginación de Power BI?

    -Se puede crear una medida que calcule el número total de elementos y luego usar esta medida para filtrar las páginas en el slicer de páginas, mostrando solo las páginas que tienen elementos.

Outlines

00:00

📊 Introducción a la paginación en Power BI

El primer párrafo presenta el problema de visualizaciones con largas listas de elementos que requieren desplazamiento horizontal. Se propone una solución alternativa llamada 'paginación', que divide los elementos en múltiples páginas y permite al usuario controlar la cantidad de elementos por página. El narrador, Buzz, da la bienvenida a su canal de Power BI y explica cómo configurar la paginación, utilizando como ejemplo una búsqueda en Bing y una gráfica de barras para visualizar distintos vendedores de automóviles.

05:02

🔢 Creación de parámetros numéricos para la paginación

En este párrafo, se describen los pasos para crear dos parámetros numéricos en Power BI: uno para definir el número de elementos por página y otro para seleccionar el número de página. Se detalla cómo crear un slicer y un medidor para el rango numérico y cómo conectar estos elementos a la tabla de ventas, permitiendo al usuario elegir la cantidad de elementos y la página deseada.

10:04

🎨 Añadir ranking y mejoras en la visualización

Buzz explica cómo utilizar una medida para clasificar los elementos basándose en el total de ventas y cómo mostrar esta clasificación en la visualización. Se utiliza un truco que implica la creación de una medida dummy para activar las 'etiquetas totales', permitiendo mostrar el rango de clasificación junto a los nombres de los elementos. Además, se discuten ajustes de formato para mejorar la apariencia y la experiencia de usuario.

15:06

🖱️ Implementación de la funcionalidad de paginación

Este párrafo se centra en la implementación de la funcionalidad de paginación. Se crea una medida que actúa como filtro para la visualización de barras, tomando en cuenta el número de elementos por página y el número de página seleccionado por el usuario. Se detallan los pasos para escribir esta medida, utilizando las variables del usuario y la función de filtrado para mostrar solo los elementos correspondientes a la página actual.

20:06

📐 Diseño y ajustes de la experiencia de usuario

Buzz muestra cómo mejorar la experiencia de usuario al ajustar la apariencia de los controles de paginación. Se discuten cambios en la disposición y formato de los slicers para el número de elementos y páginas, así como la adición de elementos gráficos como textos y formas para mejorar la presentación y la navegación por la visualización.

25:06

🔗 Filtrado de páginas y ajustes finales

El sexto y último párrafo cubre la creación de un filtro para el slicer de páginas, asegurando que no se muestren páginas sin elementos. Se calcula el número total de elementos y se utiliza esta información para limitar el número de páginas mostradas. Además, se sugiere ajustar el ancho del slicer de páginas para adaptarse a diferentes números de elementos por página y se ofrecen soluciones para el caso en que el usuario desee ver todos los elementos en una sola página.

👋 Conclusión y próximos pasos

Para concluir, Buzz invita a los espectadores a dejar sus comentarios y preguntas y promueve un programa de diseño y transformación de Power BI, donde enseñará un proceso seguro para desarrollar y implementar informes de Power BI. También alude a futuras oportunidades para aprender más sobre Power BI y anima a los espectadores a seguir explorando el canal.

Mindmap

Keywords

💡Visualizaciones

Las visualizaciones son representaciones gráficas de datos que permiten a los usuarios analizar y comprender información de manera más efectiva. En el video, se menciona que las visualizaciones pueden mostrar un desglose por una larga lista de elementos, y si no hay suficiente espacio, aparece una barra de desplazamiento, lo cual puede resultar en una experiencia de usuario menos ideal.

💡Barra de desplazamiento

La barra de desplazamiento es una herramienta de navegación que aparece cuando hay más contenido de lo que cabe en la pantalla. En el contexto del video, se describe cómo una barra de desplazamiento puede ser una solución para visualizar listas largas, pero también cómo puede ser perjudicial si requiere desplazamiento extenso para acceder a las conclusiones necesarias.

💡Imaginación

La imaginación, en el marco del video, se refiere a la técnica de dividir la cantidad de elementos visualizables en varias páginas, permitiendo al usuario controlar la cantidad de información que se muestra. Es una alternativa a la barra de desplazamiento, mejorando la experiencia del usuario al brindarles más control sobre cómo consumen el contenido.

💡Control de usuario

El control de usuario es un concepto clave en la interfaz de usuario que se centra en permitir a los usuarios manipular y elegir cómo se presenta la información. En el video, se destaca cómo la imaginación ofrece más control al usuario sobre la cantidad de elementos que desean ver por página, mejorando así su experiencia.

💡Parámetros numéricos

Los parámetros numéricos son variables en las herramientas de análisis de datos que permiten a los usuarios definir rangos o valores numéricos para la personalización de las visualizaciones. En el script, se establecen parámetros numéricos para determinar cuántos elementos se muestran por página y qué página se visualiza.

💡Ranking de elementos

El ranking de elementos es una técnica utilizada en las visualizaciones para ordenar los datos de acuerdo con ciertos criterios, como las ventas totales en el ejemplo del video. Se utiliza la función 'rank X' en Power BI para asignar un rango basado en el desempeño de cada elemento.

💡Medidas en Power BI

Las medidas en Power BI son columnas calculadas que se crean utilizando fórmulas DAX (Data Analysis Expressions) para analizar y sumarizar datos de manera personalizada. En el video, se crean medidas como 'item Rank' y 'item filter' para controlar cómo se muestran los datos en la visualización.

💡Filtros

Los filtros son componentes en las herramientas de visualización de datos que limitan la cantidad de datos mostrados en una visualización. En el script, se utiliza un filtro衡量 para mostrar solo los elementos que corresponden a la página y cantidad de elementos seleccionados por el usuario.

💡Formateo de visualizaciones

El formateo de visualizaciones se refiere a la personalización de la apariencia de las visualizaciones, incluyendo colores, etiquetas de datos, y otros elementos gráficos. En el video, se discute cómo el formateo puede mejorar la experiencia del usuario y hacer que las visualizaciones sean más atractivas y legibles.

💡Etiquetas de datos

Las etiquetas de datos son texto附加在 las visualizaciones que identifican y describen los datos mostrados. En el video, se menciona cómo se pueden personalizar las etiquetas de datos para incluir información adicional, como el rango de elementos, mejorando así la claridad y la utilidad de la visualización.

💡Paginación

La paginación es el proceso de dividir un conjunto de datos en varias páginas para facilitar su visualización y navegación. En el video, la paginación es una solución para manejar listas largas de elementos, permitiendo al usuario ver solo un subconjunto de los datos a la vez.

Highlights

Introduces the concept of pagination in visualizations to handle long lists of items.

Suggests using pagination as an alternative to endless scrolling for better user experience.

Demonstrates setting up pagination in Power BI with step-by-step instructions.

Explains how to create a numeric parameter for users to select the number of items per page.

Shows how to add a slicer to allow users to choose the number of items they want to see.

Discusses the creation of a measure to rank items based on total sales for visualization.

Illustrates a trick to show item rank within the visualization using a dummy measure.

Details the process of creating a filter measure to display items based on user-selected page and item count.

Guides on filtering the visualization to show only the items that meet the user's pagination criteria.

Advises on improving the user interface by adjusting the placement and appearance of slicers.

Provides tips on resizing and repositioning UI elements for a cleaner and more intuitive layout.

Explains how to create a page filter measure to limit the number of pages displayed based on item count.

Demonstrates adjusting the numeric range parameter to allow for a larger number of items per page if desired.

Shows how to use a measure to calculate the total number of pages based on user preferences.

Concludes with the option for users to choose between pagination and a scrollbar for full list viewing.

Encourages viewers to engage with the content by leaving comments and questions.

Promotes an upcoming Power BI design transformation program for learning report development.

Transcripts

play00:00

sometimes you have visualizations that

play00:01

show a breakdown by a long list of items

play00:04

and what happens if there's not enough

play00:06

space you get a scroll bar now for the

play00:08

end user it might feel as if they have

play00:10

to scroll and scroll endlessly to get to

play00:13

the insights that they need but now as

play00:15

an alternative to this you could also

play00:16

consider imagination which means that

play00:19

you divide the number of items over

play00:20

multiple pages and you could even let

play00:23

the user pick how many items they want

play00:25

to see per page now this gives the

play00:28

business user more control over how they

play00:30

consume the content in the best way now

play00:32

let me show you how we can set it up

play00:34

[Applause]

play00:42

welcome to how to power bi my name is

play00:44

Buzz and if this is the very first time

play00:45

for you visiting this channel make sure

play00:47

to hit that subscribe button to stay up

play00:49

to date on all of my videos in which

play00:51

action everything I know about power bi

play00:53

all right so we want to build a

play00:55

visualization with imagination now just

play00:58

to make sure that you know what

play00:59

pagination is let's take over here Bing

play01:01

search now you see that if I search for

play01:04

something then I can scroll all the way

play01:06

to the bottom and there well we have the

play01:09

option to go to the next page so it

play01:11

divides the search results over multiple

play01:14

Pages now that's exactly what I want to

play01:16

have over here for this bar chart

play01:17

because also here I have a long list of

play01:20

now these items are not search results

play01:23

but over here we are looking at car

play01:25

dealers and you see I can just honestly

play01:27

scroll down and down and down and down

play01:29

we have about

play01:30

84 I believe different car dealers in

play01:34

this data set all right so let's just

play01:35

dive in straight away as a very first

play01:37

step let's give the user the option to

play01:39

choose the number of items that they

play01:41

want to show so for that we need a

play01:43

numeric parameter so we can go here all

play01:46

the way to the top to modeling and then

play01:48

over here new parameter numeric range

play01:51

and this parameter we're going to call

play01:53

number of items that have the user wants

play01:57

to see per page all right data type all

play02:00

numbers okay minimum well at least one

play02:02

we want to see maximum let's say 50.

play02:05

then the increments are one that's fine

play02:08

and by default I want to have the

play02:10

default to done add this slice to the

play02:12

page and click on create now this

play02:14

creates first of all the slicer that we

play02:16

need where the user can pick how many

play02:19

items they want to see but at the moment

play02:20

it's not connected to anything just yet

play02:22

now I'm just going to put it here on the

play02:24

right hand side of the visual and

play02:25

numeric range parameter is just a

play02:27

disconnected table in the model as you

play02:29

can see when you go into the modeling

play02:31

view number of items is that

play02:33

disconnected table here at the top you

play02:36

see the formula generate series 1 to 50

play02:39

increments of one and the sales table

play02:41

well that is the main table that I use

play02:43

for this visual okay and there's no

play02:45

relationship between there now let's go

play02:47

back to the Viewpoint of view because

play02:48

now we need to add another numeric range

play02:51

parameter because we also want to have

play02:53

the option where the user can click on

play02:56

the page number that they want to go to

play02:58

all right and for that we need another

play03:00

one so modeling new parameter numeric

play03:04

range and this one we can set up in

play03:05

exactly the same way so let's call this

play03:07

one number

play03:09

pages and then here whole number minimum

play03:13

let's put this to one maximum let's also

play03:16

put it to 50 and then increment so one

play03:18

default over here let's just put in one

play03:21

okay add slices to the page click on

play03:23

Create and exactly the same thing

play03:25

happens again we have a disconnected

play03:27

table but now this one is called number

play03:29

of pages now the slides I'm going to put

play03:32

here on the right hand side right next

play03:34

to it all right so now we have the

play03:35

controls which let the end here to pick

play03:37

how many items they want to see per page

play03:39

and to which page they want to go all

play03:41

right now the next thing that we need to

play03:43

do is to rank the items now over here

play03:46

that's the card dealers based on the

play03:48

series that you're visualizing here that

play03:50

is total sales so we can do this with a

play03:52

measure so let's add a measure but let's

play03:54

call it item Rank and this is going to

play03:58

be equal to now here we can use the

play04:00

function rank X now the rank X function

play04:03

has two

play04:05

mandatory arguments table expression now

play04:08

the table that we want to integrate over

play04:10

is going to be all of the items so we

play04:13

can use the all function which removes

play04:15

any filter on

play04:18

here the car repair shop name column all

play04:21

right and then for each item we go to

play04:24

calculate the total sales and on that

play04:28

basis it then assigns direct okay and

play04:31

then we can close the rank X function

play04:33

and that's it so now I want to test if

play04:35

that works I'm going to go here to the

play04:37

visualization and then I'm going to go

play04:40

here to the build panel and here I'm

play04:43

just going to add it to Tool tabs so

play04:46

tool tabs and here we can select item

play04:49

Rank and now when I hover over the first

play04:51

one it should return item rank one then

play04:54

two then three okay so the ranking is

play04:56

working however it would probably be

play04:58

nice to also show it in the

play04:59

visualization maybe here right after the

play05:01

item names and to be able to do that we

play05:04

have to make use of a little trick now

play05:06

let me first show you what the problem

play05:08

is if I now would go here to formatting

play05:11

and then here we go to data labels now

play05:14

the data labels that we have here are

play05:16

the ones that you are currently looking

play05:17

at and I need to because I also want to

play05:21

have another data label that then shows

play05:23

here on the left hand side with the

play05:24

ranking so what is the trick what we can

play05:27

do is we can make use of total labels

play05:30

dollar labels doesn't show so how are we

play05:33

going to do that well total labels only

play05:35

shows if you have two series or more so

play05:38

we just have to make sure that we have

play05:40

two series how without actually changing

play05:43

what how it looks like now well what we

play05:46

can do is make use of a dummy measure so

play05:48

if we go back and we add a new measure

play05:52

and this is going to be a dummy so let's

play05:54

call it like that dummy equals zero then

play05:58

we go back to the builds panel and over

play06:00

here we're going to add it this time

play06:01

right next to total sales so add Dana

play06:04

sales dummy okay now the colors change

play06:08

however there's not really a new series

play06:11

that pops up over here visibly however

play06:13

you do see it in the legend now what we

play06:16

need to do is just play around with the

play06:18

formatting so that it looks like we

play06:20

added before so going into format

play06:22

bars and then here total sales I want to

play06:25

have in blue and then the dummy well

play06:28

dummy I want to have just in white okay

play06:30

now here the legend we don't want

play06:33

anymore so I'm going to turn the light

play06:36

enough and now it looks

play06:38

almost the same as before the only

play06:40

difference is that the labels now show

play06:42

over here and that we have the option to

play06:46

add total labels okay so I'm going to

play06:49

add total labels and see the total name

play06:53

must pop up all the way here on the

play06:55

right hand side all right and what about

play06:58

the data labels here well there we're

play07:01

going to use

play07:02

the custom labels because we can

play07:05

customize how those labels look like so

play07:07

let's

play07:08

turn it on and write a measure that then

play07:11

Returns the rank so I'm gonna go and add

play07:15

another measure this is going to be my

play07:17

item rank label because I want to have

play07:20

it show a little bit differently I want

play07:22

to show it with a pound symbol and

play07:24

combine that with well the previous

play07:27

measure item Rank and this one we can

play07:30

then use as a label so I'm going to go

play07:33

back here to formatting data labels

play07:36

watch out that you apply it to the

play07:38

correct series which is in this case

play07:40

total sales then over here on the

play07:44

options we can decide on the position

play07:45

inside base

play07:47

done here for values this is where it

play07:50

gets interesting because here on the

play07:52

custom labels we can choose the field

play07:54

and the field is going to be item rank

play07:57

labels all right so we have the ranking

play07:59

we have the labels now also showing

play08:01

correctly in the visualization Now The

play08:03

crucial part because this ranking we

play08:06

need to use for a filter measure that

play08:09

checks how many items the user wants to

play08:12

see and on which page we are now let's

play08:15

write a measure that we use as a filter

play08:17

for a bar chart okay so I'm going to add

play08:21

a new measure all right now let's call

play08:22

this one item filter and this is going

play08:26

to be equal to now let's make user

play08:28

variables first of all we need to figure

play08:30

out the page that is selected okay so

play08:32

for that it's actually already measure

play08:34

that automatically gets generated when

play08:37

you set up the numeric range parameter

play08:39

so that's this one over here number of

play08:41

pages value so let's refer to that one

play08:44

square bracket open then you see all of

play08:46

the measures and I'm want to have this

play08:49

one here number of pages value all right

play08:50

and then the next one there we need to

play08:53

figure out how many items the user wants

play08:56

to see number of

play08:58

items which is going to be equal to now

play09:00

also here we already have the items

play09:03

value measure which just checks what the

play09:07

user picked in that slicer for the

play09:09

number of items and then the third

play09:11

component is going to be the item rank

play09:14

now here we already created that Niger

play09:17

so we can also here just refer back to

play09:20

item bank and then the crucial part

play09:22

which is the filtered table with all of

play09:26

the items that need to show in the

play09:28

visualization on the basis of the number

play09:31

of items that the user wants to see and

play09:33

the page that they clicked on now let's

play09:36

call this one items

play09:39

filtered

play09:40

all right and maybe table just to make

play09:43

sure that this is a table we can make

play09:45

use of the filter function and we want

play09:48

to filter and here we can say all select

play09:51

that and here we want to have all of the

play09:55

repair shops all of the items and then

play09:58

the filter expression where we need to

play09:59

check the ranking so the item Rank and

play10:03

the ones that need to show the items

play10:06

that need to show need to have an item

play10:08

Mac that's bigger than here we can see

play10:11

okay which page are we on and so we

play10:13

referred to the page and then we do for

play10:17

this one minus one okay so the previous

play10:20

page times the number of items okay so

play10:24

the number of items there we have also

play10:27

variable now this is one condition that

play10:29

needs to be true for those items that

play10:31

need to show but there's a second

play10:33

condition because there's also an upper

play10:35

boundary this is kind of the lower

play10:37

boundary and the item rank also needs to

play10:40

be lower than or equal to and here we

play10:43

can just refer to the page

play10:46

times

play10:48

and then again number of items okay so

play10:51

you have the current page times the

play10:52

number of items so let's say you're in

play10:54

page number two you want to see 10 items

play10:57

2 times 10 is 20. all right that would

play11:00

be over here the upper boundary the

play11:02

lower boundary would then be two minus

play11:05

one is one times the number of items is

play11:07

that that's all 10 to 20 and the item

play11:11

rank needs to be in bigger than the 10

play11:13

or equal to a lower than the 20. okay so

play11:15

that is basically what it says here okay

play11:16

now then we need to close that filter

play11:19

function and then the last part there we

play11:22

still need one variable with the items

play11:24

and that should show okay so items sure

play11:28

which is equal to now here we want to

play11:31

figure out okay what is the item that

play11:33

we're currently checking for so here we

play11:35

can say selected value car repair shop

play11:38

all right and we want to see if this is

play11:42

in that table and with the filtered

play11:46

items that should show okay so we can

play11:49

just refer to

play11:50

that table okay so this is the condition

play11:52

that I want to check for if it's in that

play11:55

table then returning one otherwise it's

play11:57

zero so I need to wrap the whole thing

play11:59

inside of it if function okay so if this

play12:03

is true then return one otherwise we

play12:07

don't it's a zero okay and this is at

play12:11

the final thing that we can return and

play12:13

use for a filter

play12:16

on the visualization okay so items show

play12:19

Okay so let's select the visualization

play12:22

open here the filter spinal and we have

play12:26

to take the item filter drag it here to

play12:29

the filter section now let's drag it to

play12:31

the top this needs to be equal to one

play12:34

because only those items I want to show

play12:37

where that condition was true from the

play12:39

measure click on apply and you see now

play12:42

at the moment we are looking at only

play12:44

items number 41 250. I want to see 10

play12:48

items and I'm on page number five so

play12:50

let's go to the first page let's dive in

play12:52

one all right we see we have now items

play12:56

one to ten if I say that I want to have

play12:59

five items now I see it nicely shows me

play13:02

the top five if I go to the next page

play13:04

over here page two six did that all

play13:06

right so the main functionality is

play13:08

working we are dividing the items of

play13:10

multiple Pages now the thing is though

play13:13

still kind of ugly so let's improve how

play13:16

it looks like in the ux okay now what we

play13:19

could do is to make it look a little bit

play13:22

more familiar meaning what the user is

play13:25

probably used to and that is that you

play13:27

can choose the number of pages here at

play13:30

the bottom all right and then the number

play13:32

of items we can put it right next to it

play13:34

or maybe here at the top all right so

play13:36

let's maybe first start with that one so

play13:38

let's take the number of items and I'm

play13:40

going to put it here in the top right

play13:41

corner I'm going to make it a little bit

play13:43

smaller now you see not ideal we have to

play13:47

go to formatting and first of all we can

play13:50

turn the slide off we don't necessarily

play13:52

need it then responsiveness we also need

play13:55

to turn off Advanced options

play13:56

responsiveness off so that when we make

play13:59

it smaller it doesn't disappear and we

play14:01

get the filter icon and then here we

play14:04

have still a header and the header we

play14:07

can also get rid of and then here on the

play14:09

values let's decrease the font size a

play14:12

bit and then let's add a backgrounds

play14:15

let's make it blue or maybe a little bit

play14:18

lighter some more colors and let's shift

play14:20

this a little bit to the left not the

play14:22

overall background we also don't want so

play14:23

let's go to size and style background

play14:26

let's turn it off okay and then we can

play14:28

resize it and I'm going to put it here

play14:31

in the top right corner now the problem

play14:33

is well the header has gone so therefore

play14:35

the user has no clue what that number

play14:36

means so let's put right next to it a

play14:40

little text box all right so text box

play14:41

right next to it let's resize it and

play14:45

let's put it over here and we want to

play14:48

show well number of items column let's

play14:53

make it maybe dark gray instead of black

play14:56

and let's make it a little bit smaller

play14:58

let's resize it and let's get rid of the

play15:03

background as well so background of and

play15:05

then we can just shift it and align it

play15:08

with that number parameter all right so

play15:12

that was the first slicer for the number

play15:15

of items now the text box we needed

play15:17

because well and the formatting options

play15:19

there's no option to say text to the

play15:21

left instead of having the header above

play15:23

it so we needed the text box

play15:25

um and then the second slides here where

play15:27

we have to say to which page do we want

play15:29

to go now let's take that Pages slicer

play15:32

and let's move it over here to the

play15:34

bottom now I'm going to change this one

play15:36

from a single value to dial all right

play15:38

and then selection you can say ah signal

play15:41

select that's important okay and now we

play15:44

want to well make it look a little bit

play15:47

different right so first of all let's

play15:49

make it a bit wider I want to have it

play15:51

here more or less in the middle the

play15:53

header we don't need so that one we can

play15:55

turn off

play15:56

and then we can also hear the

play16:00

responsiveness of

play16:01

okay and you're on the visual let's also

play16:05

make the text a little bit smaller so

play16:07

values

play16:09

I put it to eight let's put another line

play16:12

right below it and then the borders we

play16:16

can also get rid of

play16:20

all right and then the background is

play16:22

already transparent however what shows

play16:24

is the overall background so here the

play16:26

size and style background let's turn it

play16:29

off okay good now here I would like to

play16:33

show it at the bottom but when there's

play16:35

maybe not enough space between that

play16:37

slice and the bars what we could do is

play16:39

just well insert another shape and of

play16:43

course later we could replace that with

play16:44

a nice background that fits the reports

play16:46

that we create here now if you want to

play16:48

know how to do that just check out this

play16:50

video over here okay now here though

play16:52

we're going to go to insert shapes and

play16:54

here I want to have a rectangle with

play16:56

relevant corners and let's make it white

play16:59

and so over here we go two shape Style

play17:03

then fill and make it white okay now

play17:07

borderline we don't need done enough and

play17:10

now we just have to resize it

play17:13

and then position it where we want to

play17:15

have it

play17:16

over here make it as wide as the graph

play17:20

and then we have to push it to the back

play17:22

which you probably can do best over here

play17:25

in the selection pane so that shape

play17:26

needs to be in the back all right and

play17:29

when you deselect it it shows to the

play17:32

back of the slicer all right now here we

play17:35

just need to refine it a little bit just

play17:37

like this okay now that looks kind of

play17:40

okay but you see a problem though right

play17:42

so here if we make it wider we see all

play17:45

of the pages and if I make it white

play17:47

wider all the way up to Pages where we

play17:50

even don't have any items so that means

play17:53

we need to also filter the pages slices

play17:57

that we don't show pages that have no

play17:59

items okay now how to do that another

play18:02

measure okay so let's add this measure

play18:04

and let's call this one page filter and

play18:08

also here we need to make use of

play18:10

variables or at least makes it a little

play18:11

bit easier and I want to first know how

play18:14

many items do I have overall okay so

play18:17

this is going to be

play18:19

the total number of

play18:23

items we can calculate this with a

play18:25

calculated function and we want to do

play18:28

the testing card so this thing counts on

play18:33

and here we can then refer to the car

play18:37

repair shop name that's all my column my

play18:40

field with all of the items and we need

play18:42

to well remove any filter so I'm going

play18:45

to use the all function and we want to

play18:48

remove any filter on that item and

play18:52

that's then close the brackets there for

play18:54

the calculate function and then we can

play18:58

say return and at the moment the only

play19:00

thing that we can return is the total

play19:03

number of items okay now here just to

play19:06

check if it works I'm going to go here

play19:08

to my visual let me just select the

play19:12

first page and then again we can make

play19:15

use of the tool tab right so you select

play19:17

the visualization going into the builds

play19:19

panel tool tabs now item rank is still

play19:22

there we can add now also here the

play19:24

filter for the pages okay so that when I

play19:27

hover over it now you see page filter

play19:30

returns

play19:31

84. okay so that's the total number of

play19:35

Car Dealers of items that I have now

play19:38

let's then go back to the measure

play19:40

because I want to well compare that

play19:43

number to the number of items that

play19:45

should show that's so number of items

play19:49

that should show so let's call this one

play19:52

show number of items

play19:54

now that we have already in that measure

play19:58

which is called number of items value

play20:01

okay and on the basis of the total

play20:03

number of items and how many items

play20:05

should show what the user picked we can

play20:08

calculate how many pages we want to have

play20:10

there at the bottom of the visualization

play20:12

so we can say over here VAR number of

play20:17

pages

play20:19

and then it's going to be equal to and

play20:21

here we can just divide one by the other

play20:23

so I want to have

play20:25

the total number of items and I want to

play20:29

divide that by the shown number of items

play20:33

okay 1 divided by the other so that

play20:36

means if we have total number of items

play20:39

of 100 and the user wants to see done

play20:41

per page well 100 by divided by 10 gives

play20:44

me 10 pages okay now the problem is

play20:47

though what if you have I don't know

play20:49

like in our case we have 84 items and it

play20:53

doesn't give us a round number so

play20:55

therefore it's probably a good idea if

play20:57

we just put this in a Roundup function

play21:02

and we round it up over here the number

play21:04

of digits zero

play21:07

and then we can close that Roundup

play21:10

function okay so in our case if we have

play21:12

84 items and the user wants to see damn

play21:14

item so page we have 84 divided by 10 is

play21:18

8.4 rounded up then we get 9 pages okay

play21:23

now this is almost what we want because

play21:27

the last thing that we need is then to

play21:30

use that result as a filter so

play21:33

another variable and here we have then

play21:36

the page

play21:38

filter which is equal to and here we can

play21:41

again use an IF function and see okay

play21:44

what is B selected value four and then

play21:47

here the pages and if it's equal to or

play21:51

lower than the number of pages that

play21:54

should show that's a number of pages

play21:56

that we already calculated there then we

play21:59

want to return a 1 for all of the other

play22:02

Pages we don't want to see them so

play22:04

therefore zero but the last thing that

play22:07

needs to be returned is then that page

play22:09

filter okay and then we can go to the

play22:12

slicer let's select it and here we have

play22:15

to use a new measure as a filter so I'm

play22:17

going to use the page filter drag it

play22:20

onto the filter section

play22:22

I'm going to say that it needs to be

play22:23

equal to

play22:25

one

play22:26

apply the filter

play22:28

all right and now you see it goes from 1

play22:31

to 17 if I put in the 10 then it should

play22:35

give me 9. just like predicted perfect

play22:38

now of course we can make that slice

play22:40

also a little bit less wide as so over

play22:43

here let's make it a little bit smaller

play22:45

okay then put it here in the middle

play22:49

then it's like this all right then that

play22:50

looks much better now of course if the

play22:53

user would put a very low number here

play22:55

for the number of items that they want

play22:57

to see you would get a lot of pages

play22:59

right so if I type in here let's say

play23:01

three then we have just three bars on

play23:03

every page and you would have well an

play23:05

hour to the right to see well all of the

play23:08

pages that have some information now if

play23:11

you want this to look good well make it

play23:13

at least as wide as well to a digits so

play23:17

that this still looks reasonable and

play23:19

let's test if everything works as it

play23:20

should work so I'm going to click here

play23:22

on page one shows me one to ten page Two

play23:25

Eleven to twenty perfect now of course

play23:28

if the user still wants that experience

play23:30

with the scroll bar that they see all of

play23:33

the items so then you just have to put

play23:35

in a very large number for the number of

play23:36

items right so if I type in here 25 the

play23:40

number of pages gets lost and last and

play23:42

we have a scroll bar if I put in here 50

play23:44

then the list becomes longer and longer

play23:46

all right and we just have two pages if

play23:49

I want to see all of them well then I'll

play23:51

just put in 100 but and it doesn't work

play23:54

why because in the numeric range

play23:56

parameter I just kept at 50. all right

play23:59

so if you still want the user to be able

play24:01

to scroll all the way through well

play24:04

with that scroll bar right and just have

play24:06

one page well then we just need to go

play24:08

over here too the data click here on the

play24:13

number of items and then here in the

play24:15

formula bar we have to change the 50 to

play24:18

100. and with that change the user would

play24:21

be able to type in um right meaning we

play24:24

would have this one page with all of the

play24:27

items which is that other alternative

play24:29

way we don't want to make use of

play24:31

imagination so the end user has now full

play24:34

control they still can go for scroll bar

play24:36

or if they want they can make use of the

play24:39

pagination okay and that's the whole

play24:42

thing now let me know what you think put

play24:43

your comments and questions in the

play24:44

comment section below and if you want to

play24:46

build power bi reports together with me

play24:48

there's a bar bi design transformation

play24:50

program coming up in a few weeks where I

play24:53

teach you a bulletproof process of how

play24:55

to develop and Implement power bi

play24:58

reports in a successful way each single

play25:01

time so make sure to check it out now if

play25:03

you already want to watch more tricks

play25:06

and tips about power bi then check out

play25:08

these videos over here I hope to see you

play25:10

in the next video

Rate This

5.0 / 5 (0 votes)

Related Tags
Power BIVisualizacionesPaginaciónDiseño de InformesBuzamientoControl de DatosInteracción de UsuarioParametros NuméricosMediciones DinaámicasOptimización de UX
Do you need a summary in English?