Power BI | Query editor exercise | Tidy up a list of the top websites using Query Editor

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.

The answer to the exercise will be included and explained if you attend the course listed below!

Software ==> Power BI  (88 exercises)
Version ==> Latest update
Topic ==> Query editor  (8 exercises)
Level ==> Average difficulty
Course ==> Introduction to Power BI
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Create a new Power BI report.  Load data from the Excel workbook in the above folder to get:

Initial list

The initial list of websites (we have much to do).

Make the first row the header row and rename and remove columns to get:

Tidy data

Better - now the fun begins!

Add in a column to number each row, as shown here, and rename the resulting column to Ranking:

Index column

This option effectively numbers each row. 


Use splitting columns (you may need to do this twice) to derive the current Alexa rank:

Alexa ranking

Alexa is an online tool to show how popular websites are (it's by no means 100% reliable). Although the early Alexa numbers are the same as those for the website's ranking, you'll see there are big differences towards the bottom of the list.

Load this data back into Power BI, and use it to create a chart something like this:

Number of domains

This chart shows how many domains there are for each country and type.

Save this report as Google rules, then close it down.

This page has 0 threads Add post