Hi Andrei
Passing dynamic value/parameter to a Query has been answered n times here & there... Assuming initial URL is http://ABCD/DEF/IJK
- Follow Justin's instructions to build the initial query and enter the above URL (http://ABCD/DEF/IJK)
if you look at the M code in the Power Query Advanced Editor, somewhere at the beginning you will see something like Web.Contents("http://ABCD/DEF/IJK") - hard coded URL between quotes 2. Load the result into your XL workbook 3. Assume your concatenated URL - CONCATENATE("//FirstPartOfURL";A1;"SecondPartOfURL") - is in A1, name cell A1 i.e. UserUrl (with a workbook scope) 4. Edit your query and add the following line of code - in the Power Query Advanced editor - before the line that contains Web.Contents("http://ABCD/DEF/IJK"):
myDynamicUrl = Table.FirstValue(Excel.CurrentWorkbook(){[Name="UserUrl"]}[Content]), 5. Update Web.Contents("http://ABCD/DEF/IJK") with Web.Contents(myDynamicUrl)
Done. Hope this helps