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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
LoredanaC
Frequent Visitor

Extract data from API into Power BI

Hello!

Please help me. How can I extract data from Portfolio_URL. If a add a custom column and use web.Contents formula it's bring me a new Column with Binary Result, but after that I don't know what I have to do. Please help me.

LoredanaC_0-1710507034877.png

 

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @LoredanaC ,

 

1.Parse the Binary Data: After you've added a custom column with the formula and received binary data, you'll need to parse this binary data. You can use the function to convert the binary JSON response into a list or record. For example, add a new step to transform the column. Replace with the name of your column containing the binary  data.

 

Web.ContentsJson.Document= Table.TransformColumns(#"Previous Step", {{"YourColumnName", each Json.Document(_), type record}})"YourColumnName"

 

 

2.Expand the Data: If the JSON document is a record (similar to a dictionary or an object in other programming languages), you might need to expand this to get to the individual fields. Use the option in the Power Query Editor to do this. If the JSON document is a list of records, you might first need to convert it to a table using the function or the button in the Power Query Editor, and then expand the records.

Expand ColumnTable.FromListTo Table

 

3.Load the Data: Once you have expanded the data into a format that Power BI can work with, you can then load it into your Power BI model for further analysis and visualization.

 

You can refer to the similar posts that may be helpful to you: 

How to pull data from Web API into PowerBI using A... - Microsoft Fabric Community

Web.Contents with more than one URL - Microsoft Fabric Community

How to get data from REST API (JSON) in Power BI? - Microsoft Fabric Community

 

Best Regards,

Neeko Tang

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

LoredanaC
Frequent Visitor

Please help. How can I extract the xlsx tables from this list of URL? I have been obtained this list of URLs. I have a column with multiple rows containing lists of URLs. Thanks!Screenshot 2024-03-15 211442.png

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.