Exercise: Create a Basic Table of Actors with Sorting

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 relevant Wise Owl course (sadly, only in the UK for now).

Category ==> SSRS 2016  (14 exercises)
Topic ==> Designing a Simple Report  (1 exercise)
Level ==> Relatively easy
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.

In your report project create a new report called All The World's A Stage.

Create a data source in the report which connects to the Movies database.

Create a dataset which selects fields from the Actor table, as shown below:

Actor Fields

You can use the Query Designer to make life easier.

 

Insert a table into your report and assign fields to it as shown below:

Actor table design

You can change the column headings as we've done here.

 

Create a header for the table by inserting a new row and merging its cells.

Actor table header

Your title doesn't need to be quite so prosaic.

 

Apply sorting to the table so that the actors appear alphabetically by name.

Actor table sorting

You can apply sorting on the Tablix Properties dialog box, as shown above, or in the query which populates the dataset.

Find and insert an appropriate image into the report.  Resize and position the image so that your report resembles this:

Actor mask image

Feel free to experiment with the position of the image.

 

Apply some formatting to the table so that when you run the report it resembles the one shown below:

Final actor table

You may need to adjust the column widths in your table.

Save and close your report.

This page has 0 threads Add post