I have a spreadsheet that has data for games played in a video game, sorted by hero, winrates, etc. In excel, using data source from web, and using the website here: https://www.heroesprofile.com/Global/Hero/?timeframe_type=minor&timeframe=2.50.1.79515&game_type=sl&map=Alterac+Pass populates as it should under table 0.
The problem is once new data is entered to the website, the table column headers change; then the refresh-able data source on excel gives errors such as this: Expression.Error: The column '48.59 Win Rate %' of the table wasn't found. (The winrate changed when new logs were uploaded; so I think the column header is the issue since it can't find it anymore.)
Is there a way in advanced editor to set it so the column headers just refresh along with all the rest of the data? Or a work around of some kind?
let
Source = Web.Page(Web.Contents("https://www.heroesprofile.com/Global/Hero/?timeframe_type=minor&timeframe=2.50.1.79515&game_type=sl&map=Hanamura+Temple")),
Data0 = Source{0}[Data],
#"Changed Type" = Table.TransformColumnTypes(Data0,{{"AVG Hero", type text}, {"48.59 Win Rate %", type number}, {"18.01 Popularity %", type number}, {"11.36 Pick Rate %", type number}, {"6.65 Ban Rate %", type number}, {"66 | -29 Influence", Int64.Type}, {"989 Games Played", Int64.Type}, {"Avg Win Rate", type text}, {"", type text}})
in
#"Changed Type"
The number of columns and rows rarely ever change if there's a way to set those generically.
Thank you in advance!