Traducir el blog
Power Query - multiple slicers (2/4)
In the second solution to the problem of being able to insert multiple slicers in a table, we just use Power Query to solve it, being the first query equal to that of the first proposed solution: unpivoting other columns.
You can read how to unpivot the original table in this link:
Second solution
The second query with Power Query is based on the following article:
Dingbat Data - Non-aggregate pivot with multiple rows in Power Query
Cameron Wallace published in that post a generic function that solves the case there are multiple detail values for the same data type and the same person.
The generic function in Power Query looks like this:
As source, we start from the unpivoted table (TableDetails) and pass two arguments: the column to pivot (Type) and the column with the values (Details).
To understand it, TableDetails is a normalized table with 3 columns that cannot be pivoted in the usual way, as it contains multiple values of detail for the same name and type, so it will be necessary to create additional rows when this table is pivoted:
For example, Mary has lived in two different locations: London and Joburg, so it takes 2 rows to pivot that data.
For this, the Pivot Duplicates Function has been defined with this Power Query M code:
I am not going to explain these M formulas in detail because they are not mine and are explained in the blog where this function was originally published (link here). In a next post I'll publish the fourth proposed solution, where I'll explain some of these formulas.
The way to call this function is:
= #"Pivot Duplicates Function"(TableDetails, "Type", "Details")
With which the TableDetails with its Details is pivoted by the Type, resulting in the following table:
For each Name of a person, one or more rows are obtained with all their Locations, Ages & Skills.
Null values indicate that this value is the one in the previous row, so the next step is to fill those values down with this function:
= Table.FillDown(Source,{"Locations", "Ages", "Skills"})
With which the desired second solution is achieved:
Now multiple slicers can be inserted into this table, as requested in the initial forum query.
Second solution download
- From this link to Microsoft OneDrive:
- From this link to Sites Google Drive:
I've posted the third solution with a simplified version of the generic function that has been used in this second solution. Access it at the following link:
Mi lista de blogs
-
CREAR UN SISTEMA DE COPIAS DE SEGURIDAD Y RESTAURACIÓN DE LISTAS DE SHAREPOINT CON POWER AUTOMATE - Hola a todos, Hace un tiempo publiqué un post en el que explicaba cómo podíamos programar copias de seguridad de nuestras listas de SharePoint utilizando...Hace 3 días
-
Automatiza Reportes con Power Query desde Excel: cambia carpetas, fechas y sucursales - Imagina que cada mes tienes que abrir Power Query, cambiar la ruta de la carpeta, ajustar las fechas del filtro […] The post Automatiza Reportes con Powe...Hace 3 días
-
Numerical Integration With Tanh-Sinh Quadrature v 6.0 - Graeme Dennes has updated his Tanh-Sinh Quadrature spreadsheet to V 6.0. The new version (including full open source code) may be downloaded from: Tanh-Sin...Hace 4 días
-
Subconjuntos de algunas matrices triangulares (1) - En Matemática Discreta son muy frecuentes las matrices triangulares, generalmente referidas como T(n,k). La más popular de ellas es el triángulo de Pasca...Hace 4 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 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 2 semanas
-
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 2 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 4 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
-
Las manos que construyeron la Mezquita de Córdoba - LAS MANOS QUE CONSTRUYERON LA MEZQUITA Siglos de artesanos, maestros y culturas (786–1607) [image: Arcos omeyas de la Mezquita de Córdoba] Fase omeya Arc...Hace 5 meses
-
Todo lo que debes saber sobre la función EVALUAR en Excel - Antes de empezar con este tema, te lo digo claro: No te recomiendo que uses la función EVALUAR en tus archivos de Excel. Y no lo digo porque sea difícil ...Hace 8 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 - multiple slicers (2/4)"
Leave A Reply
Comenta este artículo, critícalo o avisa si detectas algún error que haya que corregir.