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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
S3rg10frula
New Member

Leer multiples csv en carpeta - convertir filas en columnas

Hola,

Tengo una consulta que lee una carpeta con csvs que tienen el siguiente formato:

 

S3rg10frula_0-1737642810365.png

Necesitaria darle formato tabla de esta forma:

S3rg10frula_1-1737642910628.png

Gracias

 

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

Group By your header column. Choose 'All Rows' for the Operation.

jgeddes_0-1737644157366.png

The next step should add an index row to the nested tables.

Table.TransformColumns(#"Grouped Rows", {{"All Rows", each Table.AddIndexColumn(_, "Index", 1, 1)}})

Now expand the All Rows column. You do not need the header column in the expansion.

jgeddes_1-1737644323179.png

Select the header column and select Pivot Column (on the Transform ribbon). The values should be your second column and the Aggregate Value Function is 'Don't Aggregate'.

jgeddes_2-1737644469057.png

You can remove the 'Index' column to end up with something like this...

jgeddes_3-1737644527803.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
S3rg10frula
New Member

thank you so much

jgeddes
Super User
Super User

Group By your header column. Choose 'All Rows' for the Operation.

jgeddes_0-1737644157366.png

The next step should add an index row to the nested tables.

Table.TransformColumns(#"Grouped Rows", {{"All Rows", each Table.AddIndexColumn(_, "Index", 1, 1)}})

Now expand the All Rows column. You do not need the header column in the expansion.

jgeddes_1-1737644323179.png

Select the header column and select Pivot Column (on the Transform ribbon). The values should be your second column and the Aggregate Value Function is 'Don't Aggregate'.

jgeddes_2-1737644469057.png

You can remove the 'Index' column to end up with something like this...

jgeddes_3-1737644527803.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors