Power BI | Query editor exercise | Import list of the richest people 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 ==> Relatively easy
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, and load in the data in the above workbook:

Richest people

The raw data - your task is to massage it into something more presentable!

Use Query Editor to make this data look better:

Query Editor results

Some columns have been renamed, while each person's wealth (in billions of dollars) has been extracted - see below for how.

If you need hints on extracting the wealth of each person in billions, one way to proceed is to follow these steps:

Step What to do
1 Replace the word billions with an empty string.
2 Replace the $ symbol with an empty string.
3 Convert the resulting column to a whole number.

Bring the data back into your Power BI report, and use it to create a simple chart:

Pie chart

Create a simple chart just to prove that the billions really are being treated as numbers.

 

Save this report as But are they happy, then close it down.

This page has 0 threads Add post