WISE OWL EXERCISES
SSRS REPORTING SERVICES EXERCISES
- Designing a Simple Report (3)
- Data sources and datasets (1)
- Tables (5)
- Grouping tables (6)
- Expressions (8)
- Pages and printing (2)
- Parameters (15)
- Indicators (3)
- Gauges (4)
- Matrices (5)
- Charts (6)
- Data bars and sparklines (2)
- Lists (4)
- Subreports (2)
- Revision of expressions (3)
- Variables (3)
- Embedding code (3)
- Basic Custom Assemblies (2)
- Examples of custom assemblies (1)
- Customising reports (2)
- Using SQL views (3)
- Stored procedures in SSRS (2)
- Stored procedure parameters (2)
- Dropdowns with procedures (3)
- Multivalue parameter procedures (1)
- Improving report navigation (2)
- Linking reports (drilldown) (4)
- Dynamic reports (2)
SSRS Reporting Services | Revision of expressions exercise | Use the SWITCH function to categorise directors
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!
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.
First create a report called Quantity not quality, and within this create a dataset to show how many films each director has made:
If you're not sure how to group in a dataset in SSRS, see the note below.
The easiest way to apply grouping is probably with the right mouse button:
You can right-click on the top part of your query to apply grouping.
Now create a table in your report to show this data:
Your table doesn't have to look anything like this!
Create a calculated field using the SWITCH function giving a rating for each director using the following rules:
|Number of films made||Rating|
When you preview your report, you should see something like this:
See if you can find the only director whose rating is Prolific (it might not be a surprise when you do).
Close this report down.