SQL Server Development Bookmark and Share   
 index > SQL Server Reporting Services > Line numbers in Report Builder
 

Line numbers in Report Builder

I have a report in which the user community would like line numbers associated with each row.  Has anyone done this or have any ideas how to accomplish this?

Line Item   Manufacturer
1               Mazda
2               Ford
3               BMW

Thanks
JWeil  Thursday, November 10, 2005 5:14 PM
Thank you for your assistance.  "RunningValue" is not available in Report Builder.
JWeil  Friday, November 11, 2005 11:39 PM
This seems like something you want to do in the sql query rather than the report.  Not sure, exactly how...
JonM  Friday, November 11, 2005 1:43 AM
Since you drag elements into the design area and Report Builder is not based on a query, there is no way to create line item numbers within Report Builder.

Is that what you are saying?
JWeil  Friday, November 11, 2005 2:02 AM
Hi,

You can use RunningValue function as the text value of the line number column.

If you want a numbering for rows within a dataset, you can use

=RunningValue(1, SUM, "Employees")

where Employees is the dataset name.


If you have groups in your reports, say one of the groups has a name "EmployeesByCity", then you can replace the last part of the RunningValue with this group name shown as below

=RunningValue(1, SUM, "EmployeesByCity")



You can check the below link for a sample

http://www.kodyaz.com/article.aspx?ArticleID=40

Eralper
eralper  Friday, November 11, 2005 11:44 AM
Thank you for your assistance.  "RunningValue" is not available in Report Builder.
JWeil  Friday, November 11, 2005 11:39 PM

I've got a similar issue that RunningValue won't work for. Basically, what the business users want is a line number for each line in the report. Independant of the groupings. I believe this has to be done during the rendering of the report as it has to cross groups after all the report processing has been done. Here's a small sample of what they want it to look like.

Column A Column B Column C

1 Group 1 Header

2 Group 2 Header

3 Detail

4 Detail

5 Detail

6 Group 2 Footer

7 Group 1 Footer

The count can reset at the begging of each page, or continue, doesn't really matter. I'm trying everything I can think of.

Any ideas out there?

rlscero  Monday, August 06, 2007 8:45 PM

If you add RowNumber("DSName") in the first column then it should work...

Digant Desai  Tuesday, August 07, 2007 8:35 AM

Unfortunately, it's not that easy. Doing that, you get the total #f rows for each group on the group level headers. I need the count to be a straightrendered line number count and not be tied the underlying data set or grouping structure.

rlscero  Tuesday, August 07, 2007 11:05 AM

You can use google to search for other answers

Custom Search

More Threads

• SSRS Matrix and Percent Channge Rollups (enable drill downs and subtotals)
• Dynamic Connection string problem
• SSRS report when exported to PDF, the hyperlink on the chart does not work
• Report Parameters in VS 2005
• is it possible to specify the last value as a datallabel on a line graph
• Page break following a number of rows in a table (Urgent)
• Does SetSystemPolicies method delete existing roles?
• how to relate fields in different textboxes
• How to set default parameter to "Select All" for a multivalue parameter
• Matrix headings on 2005, pain in the neck