Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
551 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | Power BI (160 exercises) |
Topic ==> | Calculated columns (12 exercises) |
Level ==> | Average difficulty |
Subject ==> | Power BI training |
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.
Create a new Power BI Desktop file, and load both worksheets from the Excel workbook in the above folder (you can view the original Skyscraper Centre data via a link here).
You'll probably need to click on the Use first row as headers tool in Query Editor for each worksheet.
Create a relationship to show for each building which country it is in:
Link the country codes together.
Create a table showing the number of buildings for each country name, and you should get this:
If you include the Country from the Countries table, you'll get this, but there's a blank country at the top of the table.
The problem is that our countries table isn't complete. To get round this, create a new column in the Buildings table which gives:
You'll need to use the IF and RELATED functions.
Replace the country column in your table with this new column to get the final answer:
The Other country appears halfway down the list, and has 4 countries.
Save this file as Russia and Vietnam, and close down the instance of Power BI Desktop containing it.
You can find other training resources for the subject of this exercise here:
From: | MA@123 |
When: | 03 Mar 22 at 13:27 |
Hi! What query would we run using related and IF to solve the exercise. Thank you so much.
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.