EXERCISE TOPIC▼
POWER BI EXERCISES▼
POWERPIVOT EXERCISES▼
- PowerPivot data models (7)
- Pivot tables using PowerPivot (2)
- Using Excel tables (3)
- Using other data sources (1)
- Transforming data (Power Query) (7)
- Calculated columns (7)
- Measures (2)
- The CALCULATE function (15)
- More advanced DAX functions (5)
- Calendars (1)
- Date functions (10)
- Hierarchies (2)
- KPIs (5)
- Power View (4)
- Power BI Desktop overview (3)
- Power BI Desktop maps (1)
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.
You can learn how to do this exercise on the relevant Wise Owl classroom training course (sadly for the moment only in the UK).
Software ==> | PowerPivot (75 exercises) |
Version ==> | Excel 2016 and later |
Topic ==> | Transforming data (Power Query) (7 exercises) |
Level ==> | Harder than average |
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:

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:

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:

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.