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
Anonymous
Not applicable

Splitting Column with multiples headers and data

So, I have a table from a report that I just want to extract two informations. I was ables to transform the data till the point where I have only two columns: the first is the file name and the second is a column of tables with the report's content that I want (img 1).

 

                                         img 1

FelipeJaworoski_0-1672750899212.png

 

The content of the second column's tables is shown in the img 2

 

        img 2

FelipeJaworoski_2-1672751060650.png

 

So, each table from the column "Transformar Arquivo" has only one column with four rows.

 

What i want to do is create a final table where i have three columns: first column is the file name, seccond is the "Prazo Contrato" with it respective values (Row 2 from the img 2) and the third is "Meses de Obra" with it respective value too (Row 4 from img 2).

 

For example, the first row of my final table would by something like the img 3:

 

                                  Img 3

FelipeJaworoski_3-1672753989238.png

 

 Can somebody help me, please?

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

For such small tables, it might be worth rebuilding each table like this:

Table.TransformColumns(
  #"Previous Step Name", 
  {{
    "Transformar Arquivo", 
    each #table(
           {[Column2]{0}, [Column2]{2}},     /*{"Prazo Contrato", "Meses do Obra"}*/
           {{[Column2]{1}, [Column2]{3}}}),  /*{{16, 10}}*/
    type table
  }}
)

 

For larger tables, you'd transform the tables in a more general manner than specifying where each row value belongs.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you! It works for me.

AlexisOlson
Super User
Super User

For such small tables, it might be worth rebuilding each table like this:

Table.TransformColumns(
  #"Previous Step Name", 
  {{
    "Transformar Arquivo", 
    each #table(
           {[Column2]{0}, [Column2]{2}},     /*{"Prazo Contrato", "Meses do Obra"}*/
           {{[Column2]{1}, [Column2]{3}}}),  /*{{16, 10}}*/
    type table
  }}
)

 

For larger tables, you'd transform the tables in a more general manner than specifying where each row value belongs.

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.

Top Solution Authors