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
546 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 ==> | Normalising tables (2 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.
Create a new Power BI Desktop report, and load the data from the above workbook.
The aim of this exercise is to normalise this set of data into 3 separate tables, then join them together again to get this:
The aim is to get 3 tables joined together by relationships.
Start by duplicating the original query in Query Editor twice, and renaming the results, to get three identical queries:
If you choose Reference rather than Duplicate it will be slightly more efficient, as Power Query won't have to repeat the same steps 3 times.
For the Periods and Diets queries, remove all but one column, remove duplicate rows and sort the results to get these two queries:
Diets query | Periods query |
Add an index column to each of the two tables (call this DietId and PeriodId respectively) to number the rows for each query from 1.
Create two merge queries in succession, to link the dinosaurs table:
Delete the diet and period columns for your final query, and expand the linked tables to show the diet id and period id from these instead:
Expand the diets to show the diet id for each dinosaur, for example.
You could now if you like create a quick pair of slicers and a table, to show that your data is working:
You should now have a sense of fulfilment!
Save your report as Normality restored, 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.