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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.