Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
¡Hola a todos! Estoy bastante seguro de que mi problema podría ser resuelto a través de pivote o característica despivo, pero me encontré con un problema que no era capaz de solucionar.
Mi conjunto de datos tiene el siguiente aspecto:
| Instala | Inscripciones |
| Jugadores | Sesiones |
30/5/2020 | 10 | 20 |
| 30 | 40 |
29/5/2020 | 20 | 33 |
| 44 | 22 |
28/5/2020 | 20 | 11 |
| 33 | 5 |
27/5/2020 | 15 | 10 |
| 22 | 6 |
26/5/2020 | 16 | 6 |
| 8 | 7 |
Necesito mostrar que transpuesto, como:
| 30/5/2020 | 29/5/2020 | 28/5/2020 | 27/5/2020 |
Instala | 10 | 20 | 20 | 15 |
Inscripciones | 20 | 33 | .. | . |
Jugadores | … | .. | . | . |
Sesiones | .. | .. | .. | 6 |
El uso de la función de pivote, parece estar bien.
Pero el problema, como las columnas de fecha ahora (debido a la acción dinámica) son métricas, necesito seleccionar una por una para incluirla en la tabla. Pero como mi origen de datos de consulta cada día devolverá nuevos días (recuperará los últimos 4 días metrcs ) , la "nueva fecha" incluido todos los días, no aparece marcada (como se puede ver 30/05/2020), por lo que no aparece en la tabla.
¿Hay alguna solución para hacerlo? Quiero decir, necesito mostrar siempre los días devueltos a mi fuente de datos, sin intervención manual.
Mi .pbix adjunto, con la tabla original ( una muestra ) y la tabla pivotada como otros
fuente: https://drive.google.com/file/d/19VX0qKjk25MgowRCIxjBf6MWZ9na_v6Z/view?usp=sharing
Gracias de antemano,
¡saludos!
Solved! Go to Solution.
@gustavo80 ver adjunta, simplemente despivot y luego ver en una matriz, es la solución más fácil y escalable y sigue las prácticas recomendadas desde una perspectiva de modelado de datos.
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
¿Por qué estás sacando las fechas? En casi todos los casos, eso hace que el modelo sea más difícil de analizar/visualizar. Si realmente necesita hacerlo, es probable que pueda usar Table.ColumnNames() para generar dinámicamente una lista de los nombres de columna de fecha para usarlos en cualquier función que tenga actualmente una lista de nombres de columna estáticos.
Pero usted debe tener una muy buena razón para hacer el pivote. Su estructura de tabla inicial es buena (incluso podría considerar no despivotting más), y puede hacer que su visual deseado que muestra 4 fechas de ese tipo de estructura.
Si esto funciona para usted, márquelo como solución. Los elogios también son apreciados. Por favor, avísame si no.
saludos
palmadita
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Gracias por la respuesta rápida! Prefiero obviusly no pivotar, fue sólo un intento que hice para mostrar la información que necesito (fechas en columnas, medidas en filas).
¿Cómo debo hacerlo? Lo intenté con una tabla y con una matriz, pero no pude mostrar los datos como necesito :S
@gustavo80 ver adjunta, simplemente despivot y luego ver en una matriz, es la solución más fácil y escalable y sigue las prácticas recomendadas desde una perspectiva de modelado de datos.
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
¡Gracias! No estaba al tanto de esa opción despivo, funciona perfecto, muchas gracias!
Saludos de Argentina 😉
@gustavo80 ¡¡Con gusto!!
Desde Canadá 🍁🍁
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |