cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samgreene1
Resolver I
Resolver I

Covid Github data not refreshing with new columns

Hi,

 

I am pulling data from Github regarding Covid.  When I refresh the data, it doesn't seem to update in Powerbi.  There should be new columns for recent dates added to the end of lines.   If I edit my query and go back to the source step, I still don't see these new dates.  Opening the url in a browser shows the new dates.  Any ideas what I'm doing wrong?  Will power bi not check for new columns when refreshing data? 

 

Thanks,

Sam

 

Here's an example: 

 

let
Source = Csv.Document(Web.Contents("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_ti...",", Columns=63, Encoding=65001, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Promoted Headers", {"Province/State", "Country/Region", "Lat", "Long"}, "Attribute", "Value"),
#"Renamed Columns" = Table.RenameColumns(#"Unpivoted Other Columns",{{"Attribute", "Date"}}),
#"Changed Type2" = Table.TransformColumnTypes(#"Renamed Columns",{{"Date", type date}}),
#"Renamed Columns1" = Table.RenameColumns(#"Changed Type2",{{"Value", "Confirmed Cases"}})
in
#"Renamed Columns1"

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

You need to edit this line:

 

Source = Csv.Document(Web.Contents("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_ti...",", Columns=63, Encoding=65001, QuoteStyle=QuoteStyle.None]),

 

You can get rid of that entirely I believe to make it recognize new columns


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@samgreene1 

 

Thank you for asking this! I was having the same issue in my own Power BI report that I am creating.

 

Thanks for the insightful answer, @Greg_Deckler !

Greg_Deckler
Super User
Super User

You need to edit this line:

 

Source = Csv.Document(Web.Contents("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_ti...",", Columns=63, Encoding=65001, QuoteStyle=QuoteStyle.None]),

 

You can get rid of that entirely I believe to make it recognize new columns


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Many thanks!  That worked!

Yeah, not sure why not excluding the number of columns is not the default. Comes up a fair amount.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors