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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Not Getting XML Data In Power Query Properly

Hi All,

 

When i am importing data from from web and that has value in XML, the headers are showing in a column and not as headers. The value are repeatitive because it is for ever device so can not use Pivot. Just next to that column there is column which has information for these headers. Please if anyone can help. I am stuck on this for 3 days now.

 

Capture.PNG

 

3 REPLIES 3
Fowmy
Super User
Super User

@Anonymous 

If you can share a sample XML file and the expected results in an Excel sheet, then it would it much easier to solve.


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy 

 

Thanks for quick response. I am getting data from a link which has data in XML (Attached). Also attached how it it visible in Power Query and how i want. Appriciate your help.

 

It has data for many devices so these Attribute.ID are repeating.

 

20210811_202937.png20210811_203150.pngCapture2.PNG

Anonymous
Not applicable

Hi @Anonymous ,

 

Try to use the Transpose function to turn your rows into columns and your columns into rows.

 

 

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.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.