PowerPivot | Transforming data (Power Query) exercise | Import a table of tallest buildings, and tidy it up

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.

Software ==> PowerPivot  (75 exercises)
Version ==> Excel 2016 and later
Topic ==> Transforming data (Power Query)  (7 exercises)
Level ==> Harder than average
Subject ==> Power BI training
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 Excel workbook, and create a query based on the Tallest buildings worksheet in the Tables workbook in the above folder.

Apply transforms and create a new Metres per floor column to get this:

Cleaned list of buildings

Use the pinnacle height to get the height in metres and feet, and remove the roof height column.

Warning: the character before the m and ft at the end of the height in metres and feet doesn't seem to be a space.  Your best bet is to remove the m and ft, and then apply the Trim transform (if you can find it, that is).

Now get rid of all but these 3 columns:

Three columns to keep

You'll also need to remove any buildings with null completion years, and sort by the completion year.

Create a pivot transform to show the number of buildings by country and completion year:

First few countries

The first few countries and years that you should see.

Show this data in a PowerPivot data model. 

Save your workbook as But why, and close it down.

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post