Power BI | Query editor exercise | Using the query editor to clean your pokedex

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 if you attend one of more of the courses listed below!

Software ==> Power BI  (92 exercises)
Version ==> Latest update
Topic ==> Query editor  (8 exercises)
Level ==> Relatively easy
Classroom ==> Introduction to Power BI  /  Fast track Power BI and DAX  /  Fast track Power BI
Online ==> Introduction to Power BI  /  Fast track Power BI and DAX  /  Fast track Power BI
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

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.

With more Pokémon being added all the time, it's time to clean up our data (and clear out the trash)! First bring in the data from a reliable source (Wikipedia):

Pokemon Query Editor

Google List of generation I Pokémon. Alternatively if you don't have internet access, find the Excel file Crouching Scyther, hidden Porygon.xlsx in the above folder

Load this into the query editor and get rid of a couple of columns:

Pokemon query editor power bi desktop

The Notes column is gumpf and the idea of Type(s) Secondary, is offensive. We've also moved the National Pokedex number.

Next get rid of any Pokémon who didn't first appear in Red and Green. This can been done by applying a filter to the top of the First appeared column:

Pokemon query editor 1st gen rules

Finally to make our list completely free of any non-originals do a find and replace to remove any reference to Mega Evolution:

Pokemon find and replace

The very idea that Venusaur can evolve is just ridiculous and this stupid idea of mega forms has to stop!

Since I no longer need the First appeared column, delete it. The column was only there to remove non-essential Pokémon.  Now close and apply to save your changes:

Pokemon query editor clean data

We millennials might not have houses, but we do have avocado toast and Pokémon!

Save this as There are only 151, then close it down.

Remember if you too want to be a Power BI master:

"You teach me, and I'll teach you".

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post