Power BI Desktop | 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.

The answer to the exercise will be included and explained if you attend the course listed below!

Software ==> Power BI Desktop  (29 exercises)
Version ==> Latest update
Topic ==> Query editor  (2 exercises)
Level ==> Relatively easy
Course ==> Introduction to Power BI Desktop
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 Pokédex 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 appearance 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".

This page has 0 threads Add post