Forum Discussion
Matt Mickle
Mar 23, 2020Bronze Contributor
PowerQuery Connection to COVID-19 Data on GitHub Get and Transform
Hello- It's been a while since I have visited the forum. I took a bit of a break there. I know that someone will be able to help me. I'm trying to set up a workbook that I can refresh daily wi...
SergeiBaklan
Mar 23, 2020Diamond Contributor
Hi Matt,
You may use direct link on the file, add date as parameter
let
Source = Csv.Document(
Web.Contents(
"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/03-22-2020.csv"
),
[Delimiter=",", Columns=8, Encoding=65001, QuoteStyle=QuoteStyle.None]
),
#"Promoted Headers" = Table.PromoteHeaders(
Source,
[PromoteAllScalars=true]
),
#"Changed Type" = Table.TransformColumnTypes(
#"Promoted Headers",
{
{"Province/State", type text},
{"Country/Region", type text},
{"Last Update", type datetime},
{"Confirmed", Int64.Type},
{"Deaths", Int64.Type},
{"Recovered", Int64.Type},
{"Latitude", type number},
{"Longitude", type number}
}
)
in
#"Changed Type"
Another sample of using this source is here https://datachant.com/2020/03/18/covid-19-build-your-own-power-bi-dashboard/
Matt Mickle
Mar 23, 2020Bronze Contributor
Thanks so much for the help. Really appreciate the quick response and reference link. Hopefully all is well with you. I heard the Summit was online this year due to extra precaution for the Cornavirus. I hope that all the MVPs are doing well and you all were able to have a bit of fun at the sessions online. Good to see you're still out here on the forum helping others. Thanks again!
- SergeiBaklanMar 23, 2020Diamond Contributor
Matt, welcome back to TechComm. Yes, it was a great experience with virtual summit, hopefully all went smoothly. Microsoft did a great job.
Take care.