Traducir el blog
Power Query Table to set up multiple slicers
A week ago I answered a question from the forum MrExcel.com asking for help creating multiple slicers for a table like this:
MrExcel.com - multiple slicers
I have a table of data with locations, ages, and skills in the left hand column. Can a slicer be set up for each data type? ie one for the locations, one for the ages, and one for the skills.
The problem is that locations, ages and skills are in the same column, so slicers cannot be created for those data types with a table that is not normalized.
If the table were normalized it would be very easy to insert slicers. For example in this table:
When the data layout is all in column A, as in the first table, we need to transform that table to get a table with a column for each type of data: locations, ages and skills.
Transformations
First of all, it is necessary to indicate what type of data is in each row of the original table, including a new column on the left for the data types, as in the following table:
With this new column, it is perfectly determined what type of data each detail corresponds to, something that humans find easy to associate because we have natural intelligence, but that machines and spreadsheets find it impossible without artificial intelligence, and we have to give them concrete ideas, so they can associate each field with data to its specific entity.
Below I explain my human logic used to try to solve this problem. In this post I am going to propose 4 possible solutions to this problem, following the flow of my reasoning, as I try more formulas in Power Query M language.
All the 4 proposed solutions go through unpivot columns thanks to the Power Query tool (link here).
First solution
I use Power Query to select the Type and Details columns and unpivot other columns with each person's data. Also I insert a new merged column: Name-Type. This is the result:
With the previous table as a data source, I have inserted a dynamic table (left) and an auxiliary table with formulas (right), which will need to be adjusted in size each time the source data is updated:
One more pivot table must be created with data source in the auxiliary table and finally the slicers are created:
First solution download
- From this link to Microsoft OneDrive:
- From this link to Sites Google Drive:
In this file you can analyze:
- Power Query M code
The main M function is Table.UnpivotOtherColumns, which allows unpivot other non-selected columns, in this case the people names as "Attribute":
Univot data is more complicated with VBA than with Power Query. See VBA code to unpivot data here.
- Auxiliary table formulas, as in F2 cell:
- Pivot tables with slicers as the above image.
You can read the second solution to this problem here:
Mi lista de blogs
-
Probé Claude Sheets: ¿la nueva alternativa a Excel con IA? - Claude acaba de liberar su propia hoja de cálculo y la primera pregunta que me llegó fue si ya es […] The post Probé Claude Sheets: ¿la nueva alternativa...Hace 16 horas
-
PROJECT TRACKER: BARRAS DE PROGRESO DINÁMICAS PARA EL SEGUIMIENTO DE PROYECTOS CON POWER APPS Y SHAREPOINT - Hola a todos, Este va a ser un post un poco más elaborado de lo habitual. Vamos a crear un cuadro de seguimiento de proyectos … La entrada PROJECT TRACK...Hace 3 días
-
Convierte a mayúsculas en Excel sin fórmulas con Relleno rápido - Aprende a convertir toda una lista de nombres a MAYÚSCULAS en segundos, sin fórmulas y sin escribir dato por dato, usando la herramienta Relleno rápido d...Hace 5 días
-
Regreso 17 – Cuestiones sobre los k-casi primos - En el año 2009 presenté los números *k-casi primos*, que son aquellos que poseen k divisores primos, no necesariamente distintos, así, 48=24*3 es 5-casi ...Hace 1 semana
-
¿Y si Copilot sabe Excel y contabilidad también? - “Crea una fórmula”, “hazme una tabla dinámica”, “analiza estos datos”… Estas son algunas de las tareas que ya realizamos con modo agente Copilot en Excel...Hace 1 semana
-
Cleaning Data – Sort functions and shortcuts - Back in 2020 I posted here on New sort functions and sorting to groups, looking at using the sort functions to clean data. Revisiting that post I found tha...Hace 1 semana
-
Fix This Old Spreadsheet? Employee Hours - What would you do with a dusty old Excel file, that’s still useful, but outdated? For some files, a quick fix is all you need. For other files, the best fi...Hace 1 semana
-
PA6 - Cómo hacer un árbol genealógico - 🔝*To translate this blog post to your language, select it in the top left Google box. * Índice automático desplegable Mi árbol genealógico en ...Hace 3 semanas
-
3 Weeks Roadmap to Learn Power BI (with free resources) - Follow this easy and proven roadmap to learn Power BI in just 3 weeks. What you need to Succeed You need, A Windows computer (Power BI Desktop is availa...Hace 3 semanas
-
Este blog pasa a ser un archivo histórico - Durante muchos años he utilizado este blog para compartir artículos, reflexiones, recursos y experiencias relacionadas con la tecnología, la administrac...Hace 3 meses
-
Cuánto cemento, arena y grava por m³ de Hormigón (calculadora Excel) - ¿Necesitas saber cuánto cemento, arena y grava lleva 1 m³ de hormigón para una losa, una vereda o una base, sin hacer un diseño de mezcla completo? Esta ca...Hace 3 meses
-
😱 Tabla dinámica con error #¡DESBORDAMIENTO!? Así lo solucionas en segundos - Cómo solucionar el error #¡DESBORDAMIENTO! en una tabla dinámica de Excel Al actualizar una tabla dinámica en Excel, es posible encontrarse con el error #¡...Hace 5 meses
-
-
9 Interesting Examples With PY Function in Microsoft Excel - These are the most interesting PY function tasks in Microsoft Excel that’ll surely make you a fan! The PY function in Microsoft Excel opens up an exciting ...Hace 10 meses
-
Mostrar datos de dos celdas en un cuadro de texto de Microsoft Excel - En Microsoft Excel es posible vincular el contenido de una celda a un cuadro de texto o a una forma. Vincular contenido de cuadro de texto a valor de cel...Hace 1 año
-
Fin - Llevo tiempo pensando esta entrada y no sé que decir. Analisis y Decisión nació en 2008 y no ... Leer más »Hace 1 año
-
Análisis DAFO (FODA, DOFA) las decisiones con Excel - Para conocer la situación de una empresa, proyecto o persona, recurrimos al análisis DAFO (FODA, DOFA) en la toma de decisiones con Excel. El los años sese...Hace 2 años
-
Color, Conditions, and Copilot: How to save time using conditional formatting with Copilot in Excel - Hi everyone, this is part 11 in a series of posts to show you some of the things that are possible to do with Copilot in Excel. *What is conditional f...Hace 2 años
-
How To Predict Bearing Life With Excel - When you work in mechanical engineering, understanding the reliability and performance of bearings under various conditions is crucial. Bearings are the co...Hace 2 años
-
TikTok’s search evolution - 2 in 5 Americans use TikTok as a search engine. Nearly 1 in 10 Gen Zers are more likely to rely on TikTok than Google as a search engine. More than half of...Hace 2 años
-
Unblocking and Enabling Macros - When Windows detects that a file has come from a computer other than the one you're using, it marks the file as coming from the web, and blocks the file....Hace 3 años
-
-
-
London Excel Meetup Workbooks - The workbooks used in my presentation on “Analytical and Interactive Dashboards in Excel” at the London Excel Meetup, September 3, 2020Hace 6 años
-
Cálculo de jornada que termina al día siguiente (Power Query) y despedida - [image: Cálculo de jornada que termina al día siguiente (Power Query) y despedida]Hace 6 años
-
International Keyboard Shortcut Day 2019 - The first Wednesday of every November is International Keyboard Shortcut Day. This Wednesday, people from all over the world will become far less efficient...Hace 7 años
-
Welcome, Prashanth! - Last March, I shared that we were starting to look for a new CEO for Stack Overflow. We were looking for that rare combination of someone who… Read more "W...Hace 7 años
-
Visualize parts and whole - combine clustered column and stacked column charts - *Inga: Disa what?* *Igor: -ppeared.* by The FrankensTeam ------------------------------ Really it was 3 years ago we posted our last article? *Freddy: Th...Hace 7 años
-
Salvador Sostres, analfabeto profesional - Los nuevos tiempos traen nuevas profesiones. Internet, además, ha revolucionado el mundo del periodismo y la palabra escrita. Adaptarse o morir, ese es el ...Hace 8 años
-
Planificación de compras - Realizar una lista con los productos que necesitamos y que formarán parte de nuestra cesta de la compra nos ayuda a *encontrar la combinación de bienes p...Hace 14 años
-
-
-
-
-
-
-
-
-


No Response to "Power Query Table to set up multiple slicers"
Leave A Reply
Comenta este artículo, critícalo o avisa si detectas algún error que haya que corregir.