Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Pivot en Power Query

Hi Expertos,

¿Cómo podemos lograr pivotar por debajo en Power Query o cerca de esto?

¿Por favor ayuda?

UsuarioCategoríaID de plantillaTítuloID del documento
1HACHA10AA94237
1HACHA10APAGADO94237
1HACHA10Y94237
2HACHA10AA94000
Salida
UsuarioCategoríaID de plantillaTítulo1Título2Título3ID del documento
1HACHA10AAAPAGADOY94237
2HACHA10AA 94200
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Prueba este, copia al editor avanzado:

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUXKMABKGBiCWI5CwNDEyNleK1cGQdMIn6YwiaYTNWAMDA6XYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [User = _t, Category = _t, #"Template ID" = _t, Title = _t, #"Document ID" = _t]),
#"Duplicated Column1" = Table.DuplicateColumn(Source, "Title", "Title - Copy"),
#"Pivoted Column" = Table.Pivot(#"Duplicated Column1", List.Distinct(#"Duplicated Column1"[Title]), "Title", "Title - Copy")
in
#"Pivoted Column"

grandtotal_0-1670849916990.png

Espero que esto te ayude.

Gracias @grandtotal , funcionó para mí. ¿Puede explicar la lógica / truco aquí 😂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.