EXERCISE TOPIC▼
POWER BI EXERCISES▼
POWER BI EXERCISES▼
- Basic reports (10)
- Data sources (2)
- Query editor (8)
- Multiple tables (1)
- Filtering data (9)
- Drill-through filtering (1)
- Bookmarks (4)
- Charts (10)
- Other types of visualisation (1)
- Overview of maps (6)
- Calculated columns (7)
- 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)
- Power BI mobile (1)
- Power BI Templates (1)
- Tooltips (2)
Power BI | Calculated columns exercise | Create calculated columns to categorise length of episodes
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 ==> | Calculated columns (7 exercises) |
Level ==> | Average difficulty |
Courses ==> | Introduction to Power BI / Fast track Power BI |
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.
Create a new Power BI report, and load data from the Series worksheet in the Excel workbook in the above folder:

You only need to load this worksheet's data.
Use Query Editor to tidy up the Game of Thrones series data:

Remove the row which has TBA for the number of viewers, remove the extra episodes column and change the data type and name of the viewers column to get something like the above.
Back in Power BI, use the DATEDIFF function to work out the difference in days for each series between when it first and last aired:

Don't worry about the arguments for the function - Power BI should prompt you to complete them.
Now use an IF function to show for each series which category it belongs to using these rules:
Duration | Category |
---|---|
Less than 60 days | Short |
Otherwise | Long |
Use this to create a pie chart showing the number of series for each category:

You don't have to add so much formatting - the person doing this exercise obviously had too much time on his or her hands!
Save your report as All too long really, then close it down.