Website Connection Query

mwttaylor

New Member
Joined
Feb 9, 2017
Messages
2
Hi,

This is a long shot. I've set up a connection to a website that pulls historical data into a table in my spreadsheet. I've used the URL below to create the connection/query. My question is is there anyway of automatically updating "end=20180115" so each day when I refresh the spreadsheet it automatically pulls in the new days data rather than me having to go through each query updating the date (I plan on having lots of tables like this so having to update everyone will be really time consuming).

https://coinmarketcap.com/currencies/bitcoin/historical-data/?start=20171216&end=20180115

There is nothing I can do on at website end so just wondered if there was anything I could do in excel to achieve this.

Thanks
 

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
6,075
Are you using a 'From Web' Power Query connection? If so, you can configure the query to use the URL from a table cell value, where the cell value is a formula which constructs the URL with the current date. Configuring the query means using the Advanced Editor to edit the query text so that it uses the cell value from the table (which changes according to the current date) instead of the hard-coded fixed URL. This makes the query use a dynamic URL according to the current date.

See if you can follow the steps at https://social.technet.microsoft.com/Forums/en-US/82af94bd-8414-4b71-9371-f8bc90f4ecbe/is-it-possible-to-dynamically-update-the-source-url-with-power-query-?forum=powerquery, and if not I'll try to help further.
 

Forum statistics

Threads
1,086,123
Messages
5,387,978
Members
402,092
Latest member
S_S

Some videos you may like

This Week's Hot Topics

Top