SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Calculated Field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tech2
Starting Member

38 Posts

Posted - 04/24/2013 :  14:17:51  Show Profile  Reply with Quote
Report Builder 3.0 - SSRS 2008 R2

How can I create a calculated field that i can include on my report that shows the row 'NUMBERS', like in MS EXCEL?

A running series.

thx,

James K
Flowing Fount of Yak Knowledge

3719 Posts

Posted - 04/24/2013 :  17:03:04  Show Profile  Reply with Quote
Do you mean something like what the rownumber function does? http://msdn.microsoft.com/en-us/library/ms159225(v=sql.90).aspx
Go to Top of Page

tech2
Starting Member

38 Posts

Posted - 04/26/2013 :  11:23:13  Show Profile  Reply with Quote
thanks for the response

the 'RowNumber(scope)' does not work. I received an error message; 'Has a scope parameter that is not valid for an aggregate function'

I tried using the '=CountRows()' function but all I get is number a number (1), on every record.

thx,


quote:
Originally posted by James K

Do you mean something like what the rownumber function does? http://msdn.microsoft.com/en-us/library/ms159225(v=sql.90).aspx

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 04/29/2013 :  01:04:00  Show Profile  Reply with Quote
you need to give your actual scope which is your datasetname or containername or groupname not the text "scope" inside

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

tech2
Starting Member

38 Posts

Posted - 04/29/2013 :  08:47:59  Show Profile  Reply with Quote
this is the expression I used '=RowNumber("DataSet1")'from the Link you provided.

It works as a total in a text box.

I get the error message when I try to add the NEW calcualted field 'RecordNumber', to my table. Each record should be numbered on my Report.

thx,

quote:
Originally posted by visakh16

you need to give your actual scope which is your datasetname or containername or groupname not the text "scope" inside

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 04/30/2013 :  04:48:25  Show Profile  Reply with Quote
nope. provided you use it in detail section it will number the records returned by dataset

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000