Book Image

SQL Server 2016 Reporting Services Cookbook

By : Dinesh Priyankara, Robert Cain
Book Image

SQL Server 2016 Reporting Services Cookbook

By: Dinesh Priyankara, Robert Cain

Overview of this book

Microsoft SQL Server 2016 Reporting Services comes with many new features. It offers different types of reporting such as Production, Ad-hoc, Dashboard, Mash-up, and Analytical. SQL Server 2016 also has a surfeit of new features including Mobile Reporting, and Power BI integration. This book contains recipes that explore the new and advanced features added to SQL Server 2016. The first few chapters cover recipes on configuring components and how to explore these new features. You’ll learn to build your own reporting solution with data tools and report builder, along with learning techniques to create visually appealing reports. This book also has recipes for enhanced mobile reporting solutions, accessing these solutions effectively, and delivering interactive business intelligence solutions. Towards the end of the book, you’ll get to grips with running reporting services in SharePoint integrated mode and be able to administer, monitor, and secure your reporting solution. This book covers about the new offerings of Microsoft SQL Server 2016 Reporting Services in comprehensive detail and uses examples of real-world problem-solving business scenarios.
Table of Contents (18 chapters)
SQL Server 2016 Reporting Services Cookbook
Credits
About the Authors
About the Reviewers
www.Packtpub.com
Preface

Creating reports with dynamic datasets


As powerful as the SQL language is, sometimes it is not enough. You need to create complex logic in order to generate the SQL used in your dataset. For example, you have two tables with similar columns. You want to let the user select which table to use as the data source at runtime. We'll do just that with this recipe.

Getting ready

This recipe builds on top of the previous one, Creating reports with cascading parameters. If you've not done so, please create the report following that recipe. If it has been created, open it to begin working.

How to do it...

  1. Add a new parameter. Use ReportSource (no spaces) as the name and Report Source (with a space) as the prompt.

  2. On the Available Values page, select the Specify Values option.

  3. Click on the Add button, and then enter Order for both Label and Value.

  4. Click on Add again, and enter Sale as both Label and Value.

  5. Click on OK to close the properties dialog.

  6. In the report parameters area at the top of the report, click...