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
545 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 ==> | PowerPivot (72 exercises) |
Topic ==> | Transforming data (Power Query) (4 exercises) |
Level ==> | Relatively easy |
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.
Open up the workbook called Tables in the above folder, and have a look at the Populations worksheet:
We'll import this data into an Excel worksheet, tweaking it along the way.
Now close this workbook down, and create a new workbook.
You could use try loading the source data from the original Wikipedia page at http://bit.ly/14wM1IU if you have an Internet connection, although this may not be in the same format by the time you do the exercise.
In Power Query, choose to create a query based on this workbook:
The option you'll need to choose. Make sure you choose the table called Populations, not the one with the much longer name.
Do the following things to make this table easier to read:
You should now have something like this:
It's looking a bit more manageable!
To use this data in Excel, you'll have to turn the percentage columns into numbers. Try doing this, and you'll see this doesn't work:
The % sign is messing things up!
Undo this (except it's not undoing, it's deleting the last step of the query), and replace values in the % of world population column to replace all % symbols with spaces. You should now be able to change the data type to Decimal Number.
Load this data into your (presumably empty) PowerPivot data model:
We've changed the format of the date to make it look tidier. It's a shame we didn't make the Rank column a number too!
Change the data type of the Rank column in PowerPivot, then save your workbook as Populations and close it down.
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.