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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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: 9
  • Capture3.JPG
    Capture3.JPG
    34.9 KB · Views: 9
  • Capture2.JPG
    Capture2.JPG
    45.2 KB · Views: 9
Upvote 0

Forum statistics

Threads
1,223,786
Messages
6,174,547
Members
452,571
Latest member
MarExcelTips

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