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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ringovski
Helper II
Helper II

WebSite URL API

Hi All,

There is a open source web site https://discover.data.vic.gov.au/dataset/victorian-coronavirus-data/resource/bc71e010-253a-482a-bdbc... that I need PBI to connect to and download the data. It has a embedded data table.

 

I can't use the google docs option so I have tried using get data Website, ODATA and the API option and I have been unable to get the data, PBI says the URL invalid.

 

So I am hoping someone who is good with HTML or API can assist me.

 

Thanks

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @ringovski ,

 

Please refer to:

let
    Source = Json.Document(Web.Contents("https://discover.data.vic.gov.au/api/3/action/datastore_search?resource_id=bc71e010-253a-482a-bdbc-d65d1befe526")),
    #"Converted to Table" = Table.FromRecords({Source}),
    #"Expanded result" = Table.ExpandRecordColumn(#"Converted to Table", "result", {"include_total", "limit", "records_format", "resource_id", "total_estimation_threshold", "records", "fields", "_links", "total", "total_was_estimated"}, {"result.include_total", "result.limit", "result.records_format", "result.resource_id", "result.total_estimation_threshold", "result.records", "result.fields", "result._links", "result.total", "result.total_was_estimated"}),
    #"Expanded result._links" = Table.ExpandRecordColumn(#"Expanded result", "result._links", {"start", "next"}, {"result._links.start", "result._links.next"}),
    #"Expanded result.records" = Table.ExpandListColumn(#"Expanded result._links", "result.records"),
    #"Expanded result.records1" = Table.ExpandRecordColumn(#"Expanded result.records", "result.records", {"_id", "LGA", "lga_pid", "population", "active", "cases", "rate", "new", "band", "LGADisplay", "data_date", "file_processed_date"}, {"result.records._id", "result.records.LGA", "result.records.lga_pid", "result.records.population", "result.records.active", "result.records.cases", "result.records.rate", "result.records.new", "result.records.band", "result.records.LGADisplay", "result.records.data_date", "result.records.file_processed_date"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded result.records1",{"help", "success", "result.include_total", "result.limit", "result.records_format", "result.resource_id", "result.total_estimation_threshold", "result.fields", "result._links.start", "result._links.next", "result.total", "result.total_was_estimated"})
in
    #"Removed Columns"

Vlianlmsft_0-1638509927240.png

 

 

Best Regards,
Liang
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

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @ringovski ,

 

Please refer to:

let
    Source = Json.Document(Web.Contents("https://discover.data.vic.gov.au/api/3/action/datastore_search?resource_id=bc71e010-253a-482a-bdbc-d65d1befe526")),
    #"Converted to Table" = Table.FromRecords({Source}),
    #"Expanded result" = Table.ExpandRecordColumn(#"Converted to Table", "result", {"include_total", "limit", "records_format", "resource_id", "total_estimation_threshold", "records", "fields", "_links", "total", "total_was_estimated"}, {"result.include_total", "result.limit", "result.records_format", "result.resource_id", "result.total_estimation_threshold", "result.records", "result.fields", "result._links", "result.total", "result.total_was_estimated"}),
    #"Expanded result._links" = Table.ExpandRecordColumn(#"Expanded result", "result._links", {"start", "next"}, {"result._links.start", "result._links.next"}),
    #"Expanded result.records" = Table.ExpandListColumn(#"Expanded result._links", "result.records"),
    #"Expanded result.records1" = Table.ExpandRecordColumn(#"Expanded result.records", "result.records", {"_id", "LGA", "lga_pid", "population", "active", "cases", "rate", "new", "band", "LGADisplay", "data_date", "file_processed_date"}, {"result.records._id", "result.records.LGA", "result.records.lga_pid", "result.records.population", "result.records.active", "result.records.cases", "result.records.rate", "result.records.new", "result.records.band", "result.records.LGADisplay", "result.records.data_date", "result.records.file_processed_date"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded result.records1",{"help", "success", "result.include_total", "result.limit", "result.records_format", "result.resource_id", "result.total_estimation_threshold", "result.fields", "result._links.start", "result._links.next", "result.total", "result.total_was_estimated"})
in
    #"Removed Columns"

Vlianlmsft_0-1638509927240.png

 

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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