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.

Software ==> Power BI  (111 exercises)
Version ==> Latest update
Topic ==> Query editor  (8 exercises)
Level ==> Relatively easy
Subject ==> Power BI training
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):

Importing Pokemon characters

To get the Wikipedia data, Google List of generation I Pokémon, or import the Excel file in the above folder

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

Tidied data

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

Next get rid of any Pokémon who didn't first appear in Red and Green.

Red and green only

This can been done by applying a filter to the top of the First appeared column.

 

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

No mega evolution

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

 

Since we 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:

Final list

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.

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