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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.