WISE OWL EXERCISES
POWER BI EXERCISES
POWER BI EXERCISES
- Basic reports (4)
- Data sources (2)
- Query editor (2)
- Multiple tables (1)
- Filtering data (4)
- Bookmarks (3)
- Charts (4)
- Other types of visualisation (1)
- Overview of maps (3)
- Calculated columns (2)
- Introduction to DAX (3)
- Creating measures in DAX (1)
- Calendars (2)
- Date functions (2)
- Roles and security (1)
- Advanced data models (4)
- Drill-through and bookmarks (3)
- Custom visuals (3)
- Parameters (5)
- Quick measures (3)
- Report themes (2)
- BI mobile (1)
- Power BI Templates (1)
Power BI | Calendars exercise | Adding new field to support reporting by thirds
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!
- Go into SQL Server Management Studio;
- Open the SQL file you've just unzipped (you can press CTRL + O to do this); then
- Execute this script.
This will generate the database that you'll need to use in order to do this exercise (note that the database and script are only to be used for exercises published on this website, and may not be reused or distributed in any form without the prior written permission of Wise Owl).
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.
Sadly, your company has appointed a new FD who insists that you should report in thirds, rather than quarters. The thirds should be named after his 3 pet cats:
|Truffles||January, February, March and April|
|Sprout||May, June, July and August|
|Spot||September, October, November and December|
Start by importing all of the tables from the above database into a new model. You'll need to create a relationship between the tblCalendar table and the tblPurchase table via the PurchaseDate field:
Link these two tables as shown.
Create a new calculated column in the calendar table using this logic:
- If the MonthNumber column is less than or equal to 4, return Truffles;
- Otherwise if the MonthNumber column is less than or equal to 8, return Sprout;
- Otherwise, return Spot.
Use this to show a tree diagram proving that most sales are made in third 1:
A tree diagram with data labels displayed.
Time for a new finance director? Save this as Doing things by thirds, then close it down.