Exercise: Choose gender of director, and colour report accordingly

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!

Category ==> SSRS 2012  (53 exercises)
Topic ==> Dropdown parameters  (3 exercises)
Level ==> Average difficulty
Course ==> Advanced SSRS
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).

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 Gender stereotyping, then within this manually create a parameter which has three possible values for gender:

Dropdown of genders

When you run the report initially, you see a dropdown of 3 possible values, with the first being the default.


Create a stored procedure which lists out all of the actors for any given value of the gender parameter (make sure you choose the same parameter name in your stored procedure as you used when creating the parameter, otherwise SSRS will create a new parameter alongside the existing one).

Get your report to show all of the actors for the gender chosen, colouring the report pink if you choose Female or blue if you choose Male.  For example:

List of all actors List of female actors, in pink
If you're not bothered. If you choose Female.

Close this report down!

This page has 0 threads Add post