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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PeterJohnsonZA
Microsoft Employee
Microsoft Employee

Expanding nested tables in an xml file

Can anyone point me in the direction of a connector or some other method of reliably drilling down through an xml file and extracting tables and data from it.?

 

I'm a newbie at this but I have an xml file that I would like to be able to unpack and analyze etc. I don't know very much about XML schema and I've been going around in circles. The general answer seems to be that there is no easy way to do this because in the file in question sometimes a table is empty and sometimes it's not. 

 

Any help or guidance would be appreciated. 

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @PeterJohnsonZA ,

 

Power Query has a XML connector. Power Query XML connector - Power Query | Microsoft Docs

You could expand the table by clicking the expand button.

vstephenmsft_0-1662105582244.png

If you're going to expand a lot of columns at once, this blog may help you.

Chris Webb's BI Blog: Expanding All Columns In A Table In Power Query Chris Webb's BI Blog (crossjoi...

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

What if after expanding, one of the columns still lists "Table" for the results because it was a sub folder of the expanded data? It doesn't give the option to expand further/again. I have some data i need to change the formatting to text for before loading it and the only way I know how to drill down gives me one row of results rather than doing it for every line of the report for that field.

 

Using your screenshot provided as further explanation, it's like Division would also have columns that need expanded but they don't show on the list there and don't populate another Expand option for that data after clicking OK. Any advice? 

I am having this problem too, nested tables in a table.

so I expand everything, but then see some cells have data, e.g. a name or text, but other cells have a nested table in them [Table] .

 

So some cells in the column have single line data, but other cells seem to have a list of data... I have been struggling with this one for a couple of days now...

Hey 

did you got the solution for the mentioned 

problem

Anonymous
Not applicable

I was able to get the data I needed ultimately, but only thanks to a coworker that wrote some Python code to get it for me. Good luck! 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors