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 one of more of the courses listed below!

Software ==> Power BI  (88 exercises)
Version ==> Latest update
Topic ==> Query editor  (8 exercises)
Level ==> Average difficulty
Courses ==> Introduction to Power BI  /  Fast track Power BI/DAX
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 to derive the current Alexa rank, keeping the number but losing the bit in brackets after it:

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