adding a list to sql reporting services

Upload: marcel-chis

Post on 03-Jun-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Adding a List to sql reporting services

    1/3

    Adding a List (Reporting Services)

    1

    Adding a List (Reporting Services)SQL Server 2008

    A list data region repeats with each group or row in the report dataset. A list can be used forfree-form reports or in conjunction with other data regions. You can define lists that containany number of report items. A list can be nested within another list to provide multiple groupsof data.

    Adding a List to Your Report

    Add a list to the design surface from the Toolbox. By default, the list initially has a single cellin a row associated with the detail group.

    When you select a list on the design surface, row and column handles appear, as shown in thefollowing figure.

    The list you start with is a template based on the Tablix data region. After you add a list, youcan continue to enhance the design by changing the the content or appearance of the list byspecifying filter, sort, or group expressions, or changing the way the list displays across report

    pages. For more information, see Controlling the Tablix Data Region Display on a ReportPage (Reporting Services) . Although the list starts with a single column and row, you canfurther continue to develop your list design by adding nested or adjacent row groups orcolumn groups, or adding additional detail rows. For more information, see Exploring theFlexibility of a Tablix Data Region .

    If you have a report model data source, you can also create simple list reports using ReportBuilder. For more information, see How to: Start Report Builder .

    Displaying Data in a Free-form Layout

    To organize report data in a free-form layout instead of a grid, you can add a list to the designsurface. Drag fields from the Report Data pane to the cell. By default, the cell contains a

    http://void%280%29/http://void%280%29/http://technet.microsoft.com/en-us/library/cc627568%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627568%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627568%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627568%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627466%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627466%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627466%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627466%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/ms159221%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/ms159221%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/ms159221%28v=sql.100%29.aspxhttp://void%280%29/http://void%280%29/http://void%280%29/http://technet.microsoft.com/en-us/library/ms159221%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627466%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627466%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627568%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc627568%28v=sql.100%29.aspxhttp://void%280%29/
  • 8/12/2019 Adding a List to sql reporting services

    2/3

    Adding a List (Reporting Services)

    2

    rectangle that acts as a container. Move each field in the container until you have the designyou want. Use the snaplines that appear when you drag text boxes in the rectangle container tohelp you align edges vertically and horizontally. Remove unwanted white space by adjustingthe size of the cell. For more information, see How to: Change Row Height or Column Width(Reporting Services) .

    The following figure shows a list that displays information about an order, including thesefields: Date, Order, Qty, Product, LineTotal, and an image.

    In Preview, the list repeats to display the field data in the free-form format, as shown in thefollowing figure:

    NoteThe dotted lines displays in these figures are included to show the free-form layout for eachfield value. Typically, you would not use dotted lines in a production report.Displaying Data with One Level of Grouping

    Because a list automatically provides a container, you can use a list to display grouped datawith multiple views. To change the default list to specify a group, edit the Details group,specify a new name, and specify a group expression.

    For example, you can embed a table and a chart that show different views of the same dataset.You can add a group to the list so that the nested report items will repeat once for every groupvalue. The following figure shows a list grouped by product category. Notice that there is nodetail row. Two tables are nested side by side in the list. The first table displays thesubcategories with total sales. The second table displays the category grouped bygeographical area, with a chart that shows the distribution of subcategories.

    http://technet.microsoft.com/en-us/library/cc645971%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc645971%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc645971%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc645971%28v=sql.100%29.aspxhttp://void%280%29/http://void%280%29/http://void%280%29/http://technet.microsoft.com/en-us/library/cc645971%28v=sql.100%29.aspxhttp://technet.microsoft.com/en-us/library/cc645971%28v=sql.100%29.aspx
  • 8/12/2019 Adding a List to sql reporting services

    3/3

    Adding a List (Reporting Services)

    3

    In Preview, the table displays total sales for all subcategories of bicycles, and the table besideit displays the breakdown of sales per geographical area. By using an expression to specifythe background color for the table and a custom palette for the chart, the first table also

    provides the legend for the chart colors.

    TipFollow below points for your solution...

    1) Download database script and create database.2) Create New Report.3) In report create Data Sources, after that create Datasets with Select script from 'CASEstatement.txt' file.4) Now drag LIST item on report, Select 'Group Properties..' from 'Row Groups -> Details'

    panel.5) In 'General' Tab , Add Group on '[Certificate]'.6) Now drag or add 'Rectangle' on LIST.7) Drag Table and bind with datasets field as per above link.8) Select and put Shape chart type, and set chart data. Set Values -> NumberFilms, CategoryGroups -> Length.

    9) Now Right Click on Shape chart and select 'Show Data Labels'.10) Now Run report.