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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Imported XML leads to only one column

 

 I'm not familiar with xml import, but i'm facing an strange problem when triyng to import a file in PowerQuery because leads to the below structure:

Vitorpd_0-1692822032780.png

 

After many attempts I can find the data on "row" table, but all the data stored in this xml are in only one column, there's a way to transpose the first 35 rows to headers and create a row for every 35 rows in it?

 

 
 

image.png

 

XML on excel:

Vitorpd_2-1692822032788.png

 

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Anonymous 

According to your description, you are connecting to xml file and you find that the data stucture is not incorrect when the power query return.

 

Due to the fact that many XML documents have ragged or nested data, you may have to do extra data shaping to get it in the sort of form that will make it convenient to do analytics.

As a simple xml file that Power Query can identfy it :

vyueyunzhmsft_0-1692927823769.png

As it can identify it as a table :

vyueyunzhmsft_1-1692927852646.png

For this , you can refer to :
A Primer on JSON and XML Files in Power BI (iterationinsights.com)

Power Query XML connector - Power Query | Microsoft Learn

 

So, I think you can check whether your xml file format meets the premise of being recognized as a table.

Or you can send me part of your xml (remove sensitive data, but make sure the xml file is legal) file and I can test it locally.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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