Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
545 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | Power BI (160 exercises) |
Topic ==> | Custom functions (3 exercises) |
Level ==> | Harder than average |
Subject ==> | Power BI training |
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
Start by either creating a new table of website URLs, or loading them in from an Excel workbook (which you will need to create):
Obviously you should use real website addresses!
Your aim is to get a single query showing all of the links to external websites containing in these URLs. Begin by doing the following:
Task | Notes |
---|---|
Create a parameter | Create a parameter to hold a typical website URL. |
Load web data | Load any table of data from a typical website URL. |
Apply your parameter | Change the query you've just written so that it loads data from the website whose URL is held in your parameter. |
If you look at your query you should see that it processes the HTML returned from a website using an M Html.Table function:
Step 2 of your query will start something like this.
Amend this to create a new column called External links which picks out all the <a> tags (ie the hyperlinks) which have href attribute beginning http:
You need to type this in very carefully!
Turn this query into a custom function, and apply it to your list of website URLs to show the external links for each website you've requested:
Your final query should show all your websites, and for each website all of its external links.
Apply your changes to return to Power BI Dekstop, then save this query as PBI web scraper, and close it down.
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.