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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
vmiki
New Member

PowerQuery: flatten multitable XML

I've an XML with "sub tables". I've loaded into the Editor as you can see on the attached screenshot. The last column is "Table". That table has exactly 2 rows. I want to convert the first and the third columns of the subtable to columns in the main table. So having 4 new columnes (TCS_NAMA1, TCS_NAME2, TCS_STATION_IDENT1, TCS_STATION_IDENT2) instead of StationTable.

 

I've tried it in several way without success. Thanks in advance 🙂p_bi.jpg

1 ACCEPTED SOLUTION
vmiki
New Member

I've found the solution, here it is 🙂

 

  • Table.Column(Table.First([StationTable]),"TCS_NAME")
  • Table.Column(Table.Last([StationTable]),"TCS_NAME")

 

 

View solution in original post

1 REPLY 1
vmiki
New Member

I've found the solution, here it is 🙂

 

  • Table.Column(Table.First([StationTable]),"TCS_NAME")
  • Table.Column(Table.Last([StationTable]),"TCS_NAME")

 

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.