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,981 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Update Query 23 93
Linking dictionary and columns together 2 63
oracle report printing 2 pages in one page 2 58
Trigger usage 2 59
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now