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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors