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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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