Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

SSRS 101 – Your First Report

I know that it has been a while, and I apologize. I have been traveling around the U.S. evangelizing SQL Server to public schools, colleges and universities. Now that does not excuse my time away from the blog, but that is my excuse and I am sticking to it. Anyway, back to SSRS. If you have been following along you are ready to create your first report. That is exactly what I am going to demonstrate in this blog post.

To get started open the solution from the last post in this series, SSRS 101 – Creating a Shard Dataset. If you don’t have the project click HERE to download it. SSRS allows you create very simple reports and very complex reports. In this post I am going to create a very simple report that contains a single object and displays some data. In future posts I will expand on this report by adding additional visualizations.

Watch video if you prefer:


Creating Your First Report

  1. If you haven’t open the solution that I have been using throughout this series.
  2. Open the Solution Explorer if it is not open.
  3. Right-click the folder labeled Reports, select Add | New Item…

     


     

  4. Select Report from the Add New Item window that opens.
  5. In the textbox labeled Name enter Dashboard.rdl.
  6. Click the button labeled Add.
  7. Place your cursor on the new report that appears on the Design tab and left-click.
  8. In the menu select View | Report Data, which is the last item in the list.
  9. The Report Data window will appear. There are five folder available. I will discuss each at some point in this series. For now, right-click the folder labeled Datasets and select Add Dataset….
  10. The Dataset Properties window will open. In the textbox labeled Name enter SchoolAbsencesAndTardies.
  11. Ensure that the radio button labeled Use a shared dataset is selected.
  12. In the list of available shared datasets select Get_SchoolsAbsencesAndTardies_Aggr.
  13. Click the button labeled OK.

     


     

  14. The data set will now be displayed and all the columns that are available.
  15. In the menu bar select View | Toolbox.
  16. Select and drag a Matrix from the toolbox onto the report design surface.
  17. Open the Report Data window as explained in step 8. You could also simple click the report data tab, which should be located towards the bottom of the toolbox.

     


     

  18. Click School_Name and drag it into the column labeled Rows in the Matrix.
  19. Click School_Year and drag it into the column labeled Columns in the Matrix.
  20. Click Tardy and drag it into the column labeled Data in the Matrix.
  21. Expand the School_Name column a little so that can display the values on one row without wrapping.

     


     

  22. Click the Preview tab that is located directly above the report design surface.
  23. Since the Stored Procedure that we used in the dataset has a parameter so will the report. Before previewing the report you will be required to enter a value. Enter NW and click the button labeled Preview that is located to the right. Your report will execute.

     


  24. Save all of your work.

That’s it, your first report is created. In the next post I will explain how to customize the parameter to make it a little more user-friendly. Until then, happy report writing. As always, if you have any questions or concerns regarding this posts or any of the preview posts please feel free to email me at pleblanc@sqllunch.com.

Talk to you soon,

Patrick LeBlanc, Microsoft, Technical Solutions Professional SQL Server and Business Intelligence

 

Comments

Leave a comment on the original post [patrickdleblanc.com, opens in a new window]

Loading comments...