Solved

In MS Reporting Services, how do I use the CountRows function in a table cell with a drill down table?

Posted on 2006-11-16
2
1,983 Views
Last Modified: 2012-05-05
When I put in anything at all in CountRows(blah) to try to count the number of rows in a table I get this error...

The Value expression for the textbox ‘textbox29’ has a scope parameter that is not valid for an aggregate function.  The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a data set.
0
Comment
Question by:M3hcSS
2 Comments
 
LVL 16

Accepted Solution

by:
Hillwaaa earned 250 total points
ID: 17962262
Hi,

If you are using RS2005 you should be ok if you put the following as the expression in your textbox:

=CountRows("DataSetNameHere")

Cheers,
Hillwaaa
0
 
LVL 2

Author Comment

by:M3hcSS
ID: 17965169
=CountRows("DataSetNameHere") placed anywhere on the detail line of a drill-down table gives the total number of rows in the DataSetNameHere.


=CountRows("DataSetNameHere", Recursive) placed anywhere on the grouping line gives the number of rows BELOW it--very interesting and useful.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question