Create SSRS Report using Views

In this article, we will show you how to Create an SSRS Report using Views with an example. It is one of the frequently asked questions by followers. To demonstrate the same, we are going to use the SalesPerson View that comes with the Adventure Works database.

To see the data inside the View, please open SSMS and type the below-mentioned query it will provide the result and the data will show the sales year to date and last year.

TIP: If you want to create a custom view on your own, then I suggest you refer to the VIEWS article that we mentioned in the SQL Server Tutorial.

For this example, we are going to write the Custom query to select three columns from the Sales Person View:

USE [AdventureWorks2014]
SELECT [StateProvinceName] 
  FROM [Sales].[vSalesPerson]

Create SSRS Report using Views

In this example, we are going to create a Column Chart to display the step by step approach to create an SSRS report using Views.

The below SSRS screenshot will show you the Data Source and Dataset we used for this Column Chart Report.

Create Report using Views 2

If you find it difficult to write the Custom Query, then use the Query Designer to design the required query.

Create Report using Views 3

Right-click on the report designer and select the Insert -> Chart option

Insert chart using Views 4

For this Create SSRS Report using Views example, we are selecting Column Chart.

Create Column Chart using Views 5

Clicking the OK button displays the Column chart in the design region with dummy data.

Create column chart using Views 6

Clicking on the empty space around the Column Chart will open the Chart Data window. In this example, we will create a Column chart for the Sales YTD and Sales last Year. So, Drag and drop them from the dataset to chart data values and State Province name in the category group.

I suggest you refer to the Create Column article to understand the creation of it.

Create Report using Views 7

Click on the Preview button to see the report preview.

Create Report using Views 8

From the above screenshot, you can see that we created an SSRS Column report using the Sales Person View. Let me Format the chart a bit for the classy look.

Remember, we already explained the Formatting options in the Formatting Column Chart.

Create Report using Views 9