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 ==> | Manipulation transforms (1 exercise) |
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.
For this exercise you can either get your data from the Excel workbook in the above folder (in which case you will see the exactly the answers shown) or from the following website (in which case your data will be completely up to date):
Initially things don't look promising:
You have some work to do!
Apply transforms to get the data in this format:
The table of stations as loaded into Power BI Desktop.
The stations are sorted by ascending order of latitude (so South to North) and then numbered.
You can either try doing this exercise without any additional help, or see below for some more ideas on how to proceed!
Here are some of the things you need to do (these notes apply if you're using the Excel workbook - the website may have changed). Note also that there may well be other ways to solve the problems you encounter.
Stage | Notes |
---|---|
Header rows | You'll need to remove the top 7 header rows, then promote the top row to be a header row. |
User | Split the user by the : character, then have a look at the columns resulting. You'll see that Morwen uses a different format to everyone else (you'll need to replace some values and merge the two columns back together to get the final users). |
Lat/long | To make these decimal, you'll first need to replace the values for Canada Water station. |
Collection date | User parsingphase may have a good name, but s/he doesn't follow the right format for inputting dates. Assume their data was collected on the first day of the year shown. |
Index column | After making the latitude a number and sorting by it you should then be able to add a conditional column. |
Rename this original query as Original list, then reference it twice, renaming the results:
You now need to make the second and third query do what they say they should!
For the Stations by user query, show that Morwen has collected most stations:
Group by the collecting user and count the number of stations, then sort by this count to get these results.
For the Stations by line query, split the Line column by comma, using the advanced options to generate additional rows (rather than columns) to get:
The first few stations sorted by line (you'll also need to trim the name of the line to remove any spaces).
You can now apply grouping to get the number of stations by line:
Omit the blank line (wonder what happened to Homerton station?) and apply sorting to get these results. If you want a challenge, you could see if you could find a way to merge the two Hammersmith and City rows!
Save this report as Final results, then close it down.
You can find other training resources for the subject of this exercise here:
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.