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
-
3DFrame-py-comb - The 3DFrame-py spreadsheet has now been updated with provisions for saving multiple load cases and the associated results, and analysis with factored combi...Hace 1 día
-
MODIFICAR ELEMENTOS DE UNA LISTA DE SHAREPOINT USANDO ADO CON VBA - Hola a todos, En el post anterior os volvía a refrescar como podemos subir elementos a una lista de SharePoint usando ADO con VBA. Y … La entrada MODIFI...Hace 1 día
-
Excel con Power Apps y Dataverse: Primeros pasos - Como economista y formadora en LinkedIn Learning y otras plataformas, me complace compartir mi reciente presentación sobre el uso de Excel en Power Apps ...Hace 1 día
-
🤷♀️ BuscarV con varios resultados --> veamos cómo usando funcion SI y UNIRCADENAS - ¿Cómo buscar múltiples resultados en Excel y unirlos en una sola celda?Si has trabajado con Excel, seguramente conoces la función BUSCARV, que permite enco...Hace 1 día
-
Cómo Ejecutar una Macro al Marcar un CheckBox en Excel - Una de las funcionalidades más recientes y útiles que Microsoft ha introducido en Excel son los checkboxes o casillas. Estas […] The post Cómo Ejecutar u...Hace 4 días
-
Un juego del Rabino en Excel - 🔝*To translate this blog post to your language, select it in the top left Google box. * *AVISO:* En la red hay muchos juegos de cartas, escritos por ...Hace 6 días
-
Regresos 13 - Diferencia de potencias - En este blog hemos tratado frecuentemente las diferencias de cuadrados y, recientemente, las de cubos. Parecía conveniente intentar una generalización a ...Hace 1 semana
-
Happy Excel Day 45678 - Where does the time go? Two years ago, we were celebrating Excel Day 45000, and suddenly it’s Excel Day 45678! Do you have any special events planned? If n...Hace 1 semana
-
6 Ways to Zoom in Microsoft Excel - Zooming in Excel is like adjusting the focus on a chart – sometimes you need to see the details up close to catch what’s important. When you’re working wit...Hace 2 semanas
-
FREE 4 Hours Complete Excel Course - FREE 4 Hours Complete Excel Course Here is a FREE, complete end-to-end Excel course to help you learn all the key and essential aspects of Microsoft Exce...Hace 5 semanas
-
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 meses
-
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 3 meses
-
4 ejemplos de utilización de validación de datos con fórmulas - Ya sabes que la herramienta de Validación de datos es de gran utilidad para controlar y restringir la introducción de datos y así, asegurarte de…Hace 4 meses
-
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 5 meses
-
-
Minutos de juego y puntos. El Espanyol, sus finales de partido y mis enfados - Pienso que el Espanyol este 2024 se está dejando muchos puntos al final de los partidos. Cuando el ... Leer más » The post Minutos de juego y puntos. El ...Hace 10 meses
-
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 10 meses
-
MASTERCLASS Gratis – Gráfica de Gestión Proyectos en #EXCEL. - Aprende a crear un Gráfico de CURVA S, ideal para GESTIÓN DE PROYECTOS, porque te permite identificar como esta tu proyecto tanto en COSTOS como en TIEMP...Hace 11 meses
-
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 1 año
-
Office Scripts: Trabajando con Tablas - [image: Office Scripts: Trabajando con Tablas] Me he dado cuenta que últimamente solo escribo de lenguaje M (es mi pequeño vicio)... pero hay que liberar l...Hace 1 año
-
Hello world! - [image: Hello world!] Welcome to WordPress. This is your first post. Edit or delete it, then start writing!Hace 2 años
-
La importancia de saber mecanografía en 2022 - [image: Resultado de imagen de mecanografía viñeta escribiendo a máquina] Según la RAE, la mecanografía es el arte de escribir a máquina. Hace unos cuantos...Hace 2 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 4 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] Este blog se ha ocupado de cálculos de tiempo con bastante intensidad, c...Hace 4 años
-
Agenda Perpetua Excel Calendario Perpetuo - Saludos a los ingenieros y a todos los que forman parte de nuestra comunidad de planillas Excel para ingeniería civil, ya se vienen las fiestas navideñas y...Hace 5 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 5 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 5 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 5 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 6 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 12 años
-
-
-
-
-
-
-
-
-
No Response to "Power Query - multiple slicers (2/4)"
Leave A Reply
Indícame las erratas que encuentres y qué es lo que te gustaría ver en los próximos artículos.