Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Counts for multi value parameter

Counts for multi value parameter

Counts for multi value parameter


I have a multi-value parameter (purpose codes) with 12 options including select all. I currently show a total count per user and how many rows returned-per user regardless of how many purpose codes are selected. What I would like to do is break down that total count per purpose code per user. For example. I select OINV, PDST, OLAB. I return a set with 10 users. The first user has a total row count of 22 between the three purpose codes. I want to see the 22 along with a breakdown count of each code. So 8 OINV, 9 OLAB and 5 PDST. I am grouping by user. Any thoughts on how to do this through SSRS?



RE: Counts for multi value parameter

Could you provide a data sample along with the expected result.


RE: Counts for multi value parameter

It sounds like you just need to add the purpose code to your group by...


SELECT user, purpose_code, ...
  FROM ...
 GROUP BY user, purpose_code 

RE: Counts for multi value parameter

I figured it out by just adding another group by in SSRS report builder and then setting up additional row counts per purpose code. Thanks for the responses.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close