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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
torovic
Frequent Visitor

Agregar filas en una tabla en base a valores en la columnas

Hola, alguien me puede ayudar a solucionar esta duda?

Quiero convertir esta TABLA 1 de forma que quede como la TABLA 2 en Power Query (Lenguaje M)

Gracias por la colaboración.

TABLA 1

CUENTA DESCRIPCION Col1Col2Col3Col4Col5Col6Col7Col8Col9Col10Col11Col12Col13Col14
111001EFECTIVO EN CAJA 000A18P120000000A06P24A06P250
111007EFECTIVO EN EMPRESAS TRANSPORTADORAS DE CAUDALES 000A18P120000000A06P24A06P250
111015BCRA CUENTA CORRIENTE A01P0100A18P1200A06P160A06P1800000
111017OTRAS CTAS.CTES COMP INTEGR EFECT.MINIMO A01P0100A18P120000000000
111019CORRESPONSALIA-NUESTRA CUENTA A01P0100A18P120000000000

 

 TABLA 2

CUENTA DESCRIPCION ColM
111001EFECTIVO EN CAJA A18P12
111001EFECTIVO EN CAJA A06P24
111001EFECTIVO EN CAJA A06P25
111007EFECTIVO EN EMPRESAS TRANSPORTADORAS DE CAUDALES A18P12
111007EFECTIVO EN EMPRESAS TRANSPORTADORAS DE CAUDALES A06P24
111007EFECTIVO EN EMPRESAS TRANSPORTADORAS DE CAUDALES A06P25
111015BCRA CUENTA CORRIENTE A01P01
111015BCRA CUENTA CORRIENTE A18P12
111015BCRA CUENTA CORRIENTE A06P16
111015BCRA CUENTA CORRIENTE A06P18
111017OTRAS CTAS.CTES COMP INTEGR EFECT.MINIMO A01P01
111017OTRAS CTAS.CTES COMP INTEGR EFECT.MINIMO A18P12
111019CORRESPONSALIA-NUESTRA CUENTA A01P01
111019CORRESPONSALIA-NUESTRA CUENTA A18P12

 

2 ACCEPTED SOLUTIONS
ponnusamy
Solution Supplier
Solution Supplier

@torovic :

 

Siga los pasos a continuación

1- Ahora tienes los datos en la tabla en Power Query (TABLE 1)

 

ponnusamy_0-1634671865123.png

 

 

 

2- Seleccionar todas las columnas excepto “CUENTA” and “DESCRIPTION”

 

ponnusamy_1-1634671914384.png

 

 

 

3- Ahora seleccione "Anular pivote de columnas"

 

ponnusamy_2-1634671929019.png

 


4- Puede eliminar la columna "Atributo" y filtrar el valor <> 0

 

 

ponnusamy_3-1634671988944.png

 

Si esta publicación ayuda, considere aceptarla como la solución, felicitar a los colaboradores.

If this post helps, then please consider Accepting it as the solution, Give Kudos to motivate the contributors.

View solution in original post

Muchas gracias! Es lo que necesitaba!!! 🙂

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@torovic :

 

Siga los pasos a continuación

1- Ahora tienes los datos en la tabla en Power Query (TABLE 1)

 

ponnusamy_0-1634671865123.png

 

 

 

2- Seleccionar todas las columnas excepto “CUENTA” and “DESCRIPTION”

 

ponnusamy_1-1634671914384.png

 

 

 

3- Ahora seleccione "Anular pivote de columnas"

 

ponnusamy_2-1634671929019.png

 


4- Puede eliminar la columna "Atributo" y filtrar el valor <> 0

 

 

ponnusamy_3-1634671988944.png

 

Si esta publicación ayuda, considere aceptarla como la solución, felicitar a los colaboradores.

If this post helps, then please consider Accepting it as the solution, Give Kudos to motivate the contributors.

ponnusamy
Solution Supplier
Solution Supplier

@torovic :

 

Siga los pasos a continuación

1- Ahora tienes los datos en la tabla en Power Query (TABLE 1)

 

ponnusamy_0-1634671865123.png

 

 

 

2- Seleccionar todas las columnas excepto “CUENTA” and “DESCRIPTION”

 

ponnusamy_1-1634671914384.png

 

 

 

3- Ahora seleccione "Anular pivote de columnas"

 

ponnusamy_2-1634671929019.png

 


4- Puede eliminar la columna "Atributo" y filtrar el valor <> 0

 

 

ponnusamy_3-1634671988944.png

 

Si esta publicación ayuda, considere aceptarla como la solución, felicitar a los colaboradores.

If this post helps, then please consider Accepting it as the solution, Give Kudos to motivate the contributors.

Muchas gracias! Es lo que necesitaba!!! 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors