ALL SOFTWARE EXERCISES
- EXERCISES HOME PAGE (840)
- Access 2010 (66)
- Access VBA Macros (17)
- Advanced VBA (29)
- ASP.NET MVC (0)
- ASP.NET webforms - C# (25)
- ASP.NET webforms - VB (27)
- Excel 2010 (83)
- Excel 2013 (10)
- Excel VBA Macros (37)
- Power BI - Excel 2013 (25)
- Power BI - Excel 2016 (23)
- Power BI Desktop (26)
- PowerPivot 2010 (26)
- Report Builder 3.0 (42)
- SQL (156)
- SSAS - multidimensional (21)
- SSAS - tabular (29)
- SSIS Integration Services (18)
- SSRS Reporting Services (53)
- Visual Basic 2010 (42)
- Visual C Sharp 2010 (65)
- WPF - Visual C# (20)
POWER BI DESKTOP EXERCISES
Exercise: Use new columns to show average floor areas / building types
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 Wise Owl course listed below!
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 Desktop file, and load the Buildings worksheet from the Excel workbook in the above folder (you can view the original Skyscraper Center data via a link here).
There are 3 columns giving the uses to which each building is put:
The last 3 columns tell you how each building is used.
Use the IF function to create a new column to show for each office its use type, following these rules:
|If any of the 3 Use columns is office||Office, etc|
Show the number of buildings per use type and country code in a matrix - you should get these results:
AE - the United Arab Emirates - seems to be the place to go if you want to see skyscrapers without offices in them.
Create a column giving the floor height per building (the height in metres divided by the number of floors), and use this to show the average floor height per country:
It seems hard to believe British buildings are infinitely high; easier to believe that Wise Owl have added a rogue office to the list with nothing filled in for the number of floors, and this is giving a divide by zero error.
Amend your floor height formula so that it gives a blank if there is no value in the Floors column.
To do this you can either use the DIVIDE function, or use the IFERROR function to test for an error.
After correcting your formula, your table should now look like this:
For Britain there are two buildings, but in calculating the average the one which returns a blank floor height is (correctly) ignored.
Save this file as Kingsmoor, and close down the Power BI instance you're using.