cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors