Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 495579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:36:24+00:00 2026-05-13T05:36:24+00:00

I am using SQL Server Reporting Services 2008 to create a report. A table

  • 0

I am using SQL Server Reporting Services 2008 to create a report. A table in this report displays hierarchical data, using a ID and ParentID field in the data. Each data row has an ID field and a ParentID field, where the ParentID points to the ID of the row that is its parent.

Displaying this hierarchically is no problem, but now I want to count the number of sub-items of a given row. For example:

row A            (5)
  sub A          (0)
  sub B          (2)
    sub-sub A    (0)
    sub-sub B    (0)
  sub C          (0)

I can calculate this count using the following expression:

=Count(Fields!IDField.Value, "RowDetails", Recursive) - 1

However, sometimes I want to hide certain rows, e.g. I want to hide sub-sub A. How can I alter the above expression such that it will show a count of (1) for sub B in this case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:36:24+00:00Added an answer on May 13, 2026 at 5:36 am

    It appears to be quite hard (if not impossible) to do this in the report. Instead, we have shifted the calculation of the hierarchy and the number of children to a stored procedure. The SP does all the necessary calculations, the report simply displays what it receives from the SP and only applies simple formatting (if necessary) based on the calculated values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using SQL Server 2008 Reporting services: I'm trying to write a report that displays
When you create a report using SQL Server Reporting Services 2008 (SP1), that uses
I am using SQL Server Reporting Services 2008 (though this seems to be an
I'm using Sql Server Reporting Services (SSRS) 2008 to create RDL files, but also
I've created a model using SQL Server Reporting Services. When I try to create
I want to write a report using SQL Server Reporting Services. I want a
I have a fairly basic SQL Server Reporting Services report that is using nested
Report viewer from SQL reporting services in VS 2008 report control If I create
I have a SQL Server 2008 reporting services report which runs fine in preview
I'm using SQL Server Reporting Services 2008 to produce an invoice. The layout of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.