cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
vmiki Frequent Visitor
Frequent Visitor

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

Accepted Solutions
vmiki Frequent Visitor
Frequent Visitor

Re: PowerQuery: flatten multitable XML

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 Frequent Visitor
Frequent Visitor

Re: PowerQuery: flatten multitable XML

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

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 58 members 1,096 guests
Please welcome our newest community members: