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

  • SEARCH
  • Home
  • 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 7077289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:24:12+00:00 2026-05-28T06:24:12+00:00

Disclaimer : I’m an SSRS n00b, so not too many rotten tomatoes please :)

  • 0

Disclaimer: I’m an SSRS n00b, so not too many rotten tomatoes please 🙂

I have a hierarchy of employees and managers which I had Reporting Services build using the Recursive Parent property. Here’s a crude representation:

-Jim Bob
   Ray
  -Steve
     Ricky Bobby
     Terry

For example, I need a count of the people under Steve, but when I call Count(Fields!EmployeeID.Value, "Details", Recursive) I get 3 instead of 2. Of course, I can just subtract 1 in the case of a count, but this won’t work when I need a sum. So the real question is how do I get a recursive aggregate that excludes the parent?

Additional info: I only have one group which is the default Details group. It’s set up just like this example, so I’m grouping by EmployeeID and I have the recursive parent set to ManagerID.


Update

A few workarounds I’ve tried to no avail:

  • Adding a row inside the group – yields the same results because it’s still in the same scope as the other detail row.
  • Adding a subtotal – doesn’t work because it’s outside the details group so it only renders once instead of once per manager.

Any ideas?

  • 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-28T06:24:13+00:00Added an answer on May 28, 2026 at 6:24 am

    You could consider a couple of things.

    1) you could provide counts in the SQL query that supplies the report, and then simply report it for each group using

          =FIRST(Fields!FieldThatHasCount.Value).
    

    2) You may be able to use your report’s code block to iteratively call a function, upping the count on a shared variable or doing some sort of arithmatic between parent sections and child sections to reflect the count when your report is presented. I know I have run into complications with this approach depending on SSRS version and to the level of complexity, nesting, subreports etc., in your report.

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

Sidebar

Related Questions

( Disclaimer: This question is not specific to ASP.NET) I have a control which
Disclaimer: please do not bother reading this long post unless you are an embedded
Disclaimer: I have already seen the following questions and their solutions did not apply
Disclaimer : I have seen the exact questions, but have not seen any answers
Disclaimer: I am not a C programmer. I have recently seen a friend's project.
Disclaimer: I'm not a programmer, never was, never learned algorithms, CS, etc. Just have
Disclaimer: this question may not have practical value, it's more of a puzzle/curiosity question.
Disclaimer: not sure this is WordPress related or not. I'm following a simple tutorial
Disclaimer: I know there are better ways to track email open rates, which are
Disclaimer: I'm a rails n00b. I'm playing around with a simple helper function that

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.