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

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
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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors