SSRS Reporting Services | Gauges exercise | Create a Gauge of Oscar Success

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 ==> SSRS Reporting Services  (96 exercises)
Version ==> SSRS 2016 and later
Topic ==> Gauges  (4 exercises)
Level ==> Average difficulty
Course ==> Reporting Services
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). Once you've done this:
  1. Go into SQL Server Management Studio;
  2. Open the SQL file you've just unzipped (you can press CTRL + O to do this); then
  3. 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.

Create a report called What You Could've Won, add a data source which connects to the Movies database and a dataset which selects these fields from the Film table:

Dataset

Select these three fields and add a filter to exclude films which didn't win any Oscars.

 

Add a calculated field called WinRate which works out the percentage of nominations that a film actually won:

Expression

Use this expression.

Insert a table, add the Title field to the first column and delete one of the blank columns.

Insert a gauge into the remaining blank column:

Insert gauge

This exercise uses a simple linear gauge but feel free to try a different type.

 

Set the default pointer to indicate the OscarNominations field.

Add a second pointer, change its type to Marker and its placement to Inside.  Set this new pointer to indicate the OscarWins field.

Edit the scale so that it has a maximum value of 20 and an interval of 2.

Insert a label and set it to display the value of the WinRate field.

Apply some formatting to the various elements of the gauge and run the report:

Final gauge

Feel free to improve on this hopelessly basic formatting.

Save and close the report.

This page has 0 threads Add post