O'Reilly logo

SQL Server 2016 Reporting Services Cookbook by Robert C. Cain, Dinesh Priyankara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating reports with a chart data region

Charts and graphs are an increasingly important component of reporting. They convey information in just a glance, with a simple picture. It is likely you will be asked to create many reports with graphs, combining them to create dashboards.

In this section, we'll start with a simple graph to convey sales month by month based on the invoice date.

Getting ready

In the WideWorldImportersDW database, the data will be coming from the sales table. The report will display the total, including tax, summed up by invoice month/year and then charted. We'll start with the following query:

SELECT s.[Invoice Date Key] , SUM(s.[Total Including Tax]) AS TotalSalesWithTax FROM [Fact].[Sale] s GROUP BY s.[Invoice Date Key] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required