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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gagan1
Regular Visitor

Lines.FromBinary(Web.Contents . . .

Hi! New user to PowerBi with what is likely a simple question:

 

I want to extract this data as my source: http://inform.jrc.ec.europa.eu/GNASYSTEM/api001.aspx?workflow=258&request=Global_Peers&iso3=SYR

 

When I use the "Web" as the source option, the data doesn't show. Any thoughts?

3 REPLIES 3
Anonymous
Not applicable

Hi @gagan1,

You can copy and paste this into your Advanced Editor for reference:

let
    Source = Json.Document(Web.Contents("http://inform.jrc.ec.europa.eu/GNASYSTEM/api001.aspx?workflow=258&request=Global_Peers&iso3=SYR")),
    #"Converted to Table" = Record.ToTable(Source),
    #"Expanded Value" = Table.ExpandListColumn(#"Converted to Table", "Value"),
    #"Expanded Value1" = Table.ExpandRecordColumn(#"Expanded Value", "Value", {"version", "request", "WorkflowId", "Iso3", "Country", "IndicatorId", "FullName", "IndicatorScore", "Rank"}, {"version", "request", "WorkflowId", "Iso3", "Country", "IndicatorId", "FullName", "IndicatorScore", "Rank"}),
    #"Removed Top Rows" = Table.Skip(#"Expanded Value1",1),
    #"Removed Columns" = Table.RemoveColumns(#"Removed Top Rows",{"Name", "version", "request", "WorkflowId"})
in
    #"Removed Columns"

Thank you so much!!!!

 

Any thoughts on why changing the url part to "http://inform.jrc.ec.europa.eu/GNASYSTEM/api001.aspx request=GetResultsWFPublished&workflow=258"

 

gets the following

 

DataFormat.Error: We found extra characters at the end of JSON input.
Details:
Value="
Position=64

 

Thanks!

Hi @gagan1

I can reproduce your problem.

I test with the suggestion above and the method provided by this article, for your first link, both method can help, but for the second link, it occurs an error when using Get Data->Web and inputing the URL  as below.

16.png

 

It seems the url can't be accessed by anyone,

 

Best Regards

Maggie

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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