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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Convert XML data into a table

Hi everyone,

 

My dashboard is connected with a Web Service API via POST method and the output is XML. However, the I'm getting is scattered over multiple rows instead of being on the same row for a particular user.

 

Data Export.pngDataExport2.png

My current Query is as below:

let
    //Insert API key here
    apiKey = "######",
    //Web Services url
    url = "######",
    //Company Name
    CompanyText = "ABCompany",
    //Add the text "company=" to the beginning
    CompanyName = "company=" & CompanyText,
    //Call the web service
    Source = Table.FromColumns({
        Lines.FromBinary(
            Web.Contents(
                    url & apiKey,
                    [Content=Text.ToBinary(CompanyName)])
        )
    })
in
    Source
 
I would like the output to be a table like this:
 
Screen Shot 2019-07-16 at 11.00.59 AM.png
 
Would really appreciate your help!
1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may click Parse to xml and expand the table.

2.jpg

 

 

 

 

 

You can refer to the similar case to get detail steps:https://community.powerbi.com/t5/Desktop/convert-XML-query-to-a-table/td-p/628011.

 

Best Regards,

Amy

 

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

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous  ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may click Parse to xml and expand the table.

2.jpg

 

 

 

 

 

You can refer to the similar case to get detail steps:https://community.powerbi.com/t5/Desktop/convert-XML-query-to-a-table/td-p/628011.

 

Best Regards,

Amy

 

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.