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 multiple data regions


There is an old saying, A picture is worth a thousand words. Unfortunately, all too often, a picture needs a little helping text to explain it. In the reporting world, it is common to want to display multiple objects, most commonly a chart and a table or matrix, on the same report, both sourced from the same data. This technique is known as having multiple data regions on the same report.

Getting ready

For this report, we want to plot the total sales by year for each of the sales territories in our sales fact table. This will naturally fit well into a chart, in order to quickly perform a comparison between territories. However, the management also needs to know the exact values for each territory by year.

To accomplish this, we'll place two objects on the report, both a chart and a matrix. For the query, we'll use the following:

SELECT c.[Sales Territory] 
     , YEAR(s.[Invoice Date Key])   AS [Invoice Year] 
     , SUM(s.[Total Excluding Tax]) AS...