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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
Anonymous
Not applicable

XML to table - seperate columns and rows

I have succesfully run a Soap API call to retrieve XML data however I am unable to parse the data into readable tables due to the column names data being seperate from the row data (as per below)

XML.PNG

 

The below screenshot is as far as I get - as when I expand the "Row" column it duplicates every item

1.PNG

After expanding twice. As you can see the second column doesnt match the first column 

2.PNG

 

 

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Maybe you can refer to this post: Expand Column Containing Some Tables and this blog:  Expanding All Columns In A Table In Power Query.

 

Best Regards,

Icey

 

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

View solution in original post

5 REPLIES 5
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Is this problem sloved?
 
If it is sloved, could you kindly accept it as a solution to close this case?  
 
If not, please let me know.  
 
Best Regards
Icey
Anonymous
Not applicable

Hi @Icey  although it looks like some variation of the answers in your links could work, I was unable to manipulate their work to solve mine 

 

In the end I expanded only one side of the tables, pivotted and added new columns to match the column names I didnt expand

 

I will mark your reply as solved though as I suspect the issue is with my lack of power BI knowledge

MrSan
New Member

Hello,

 

Any chance do you show us how are you connecting Power BI with the SOAP API?

Anonymous
Not applicable

Hey @MrSan 

 

I used the answer from dataloreous in the below link

https://community.powerbi.com/t5/Desktop/How-to-get-data-from-a-SOAP-WS-with-Power-BI/td-p/29040

 

I used the below with the code, with the xml body stored in an XML file 

 

let
Source = Xml.Tables(Web.Contents("API WEB PAGE",[Content=File.Contents("XML FILE LOCATION"),Headers=[#"Accept-Encoding"="gzip,deflate", SOAPAction="", #"Content-Type"="text/xml;charset=UTF-8"]])),

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Maybe you can refer to this post: Expand Column Containing Some Tables and this blog:  Expanding All Columns In A Table In Power Query.

 

Best Regards,

Icey

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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