WISE OWL EXERCISES
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 | Show the length of each film in hours and minutes
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 one of more of the courses listed below!
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 Films.csv file in the above folder:
The only two columns you'll need to do this exercise are the film title and its length in minutes, so you could if you like use Query Editor to remove all of the other columns (this is optional).
Create a calculated column to show the number of minutes for each film using this formula:
This divides the film length by 60 and gives the remaining minutes (so Jurassic Park above should show 6, since it lasts 2 hours and 6 minutes). Bear with ...
Add another calculated column to give the number of hours (this should equal the film length minus the left over minutes, divided by 60) using this formula:
You should now have something like this:
What your table should now look like.
Use the & symbol to concatenate or join together columns to create one more column:
The final column, giving the film length in hours and minutes.
Save this report as But what about Spider-Man, then close it down.