Power Query parametized

philaugust2004

Board Regular
Joined
Feb 1, 2017
Messages
196
Office Version
  1. 365
Platform
  1. Windows
I want to get data from this site
using any team on left side of the page as the opposition so if say I choose Cardiff City the page would be
https://www.11v11.com/teams/leeds-united/tab/opposingTeams/opposition/Cardiff City/

I want to be able to have the Cardiff City part (or any opposition ) to be added via a cell in a worksheet as now i change the power query manually
I have searched the internet but can't find anything that works. but I'm sure it should be easy and it was a lot easier in the days of webquery rather than Get & Tranform!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
A bit of a convoluted Answer.
1. Bring your (Cardiff) table into PQ.
2. Click on the Cog Wheel in the source line
3. Remove the Term in the first line "Cardiff City" and in the next line type in TeamParam
4. With your Query open, click on Manage Parameters
5. Fill in the Parameter as shown below. You will need to list all the other teams you wish to include. I have not found an easy way to do this.
6. When you open your query, Click on Team Param and make your selection
 

Attachments

  • Capture1.JPG
    Capture1.JPG
    45.4 KB · Views: 6
  • Capture3.JPG
    Capture3.JPG
    34.9 KB · Views: 6
  • Capture2.JPG
    Capture2.JPG
    45.2 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top