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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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