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 6948075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:46:30+00:00 2026-05-27T13:46:30+00:00

In SSRS I’ve a report containing several multi-value parameters. On some of them I

  • 0

In SSRS I’ve a report containing several multi-value parameters. On some of them I have to perform a grouping for a subreport. Problem is that a Tablix (which provides the grouping I need) requires a dataset – and a parameter is not a dataset..

At the moment, I do this grouping using a dataset which joins the multi-value parameter and passes it to a SQL function. The SQL function then returns a single-column table containing the values of the multi-value parameter. This requires SSRS to query the database, which is an ugly way for processing a parameter which is already in the report imho.

Is there a neater way to perform grouping based on a multi-value parameter?

  • 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-27T13:46:31+00:00Added an answer on May 27, 2026 at 1:46 pm

    One way that you could do this, though whether it is neater is open for debate, would be to build a Reporting Services Data Processing Extension – they are not hard to do, and the one I propose is really simple…

    To make it work for anything where you have a fixed list, and I am just throwing an idea out, you could create a “query language” that looked something like this:

    ParameterType=.net type&DataColumnName=Whatever the user wants&Value=first value&Value=second value...
    

    That way inside the extension you split on & (you would define a rule to escape & in Value entries so \& or something) and then check you have just one ParameterType and DataColumnName entry (if ParameterType doesn’t exist default to “System.String” and default to “Value” or something if DataColumnName doesn’t exist – throw an error if they are multiply defined) and for the former, if set, use a Type.GetType to set the column type and the later set the name in the “schema” for the result set.

    Finally all you’d have to do then is loop through all the Value entries and add a row to the result set.

    This would work not just for multi-valued parameters but for anything that you have a fixed list of that you want to turn into a data set and means no trips to databases or anything – the processing would happen on the Rerporting Services server.

    In the case of the multi-valued parameter you’d just do a for loop in the query in the report to generate the query.

    Maybe, in the quest for neatness, you could also create a handy function that takes a parameter as an argument and generates the query so you have a shared library and a data processing extension and all the person that creates the report would need to do is something like (that would be a five liner function I think):

    =MultiValueQuery.GenerateQuery(Parameters!MyMultiValueParameter)

    Neat, maybe, you be the judge!

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

Sidebar

Related Questions

I know nothing about SSRS I have an SSRS report with a column containing
I am writing an SSRS report that has several parameters including a couple of
in an SSRS report textbox, i have this =Fields!FullName.Value which displays a customers Full
We have some SSRS reports that are failing when two of them are executed
I have a SSRS report that I pass parameters to. Within the base report
My SSRS report fetches data from my DATAWAREHOUSE. The ASP.NET application I have is
I have SSRS report with its own datasets coming straight from the database. I
I have created my SSRS report in VS2010 and it looks really good. Upon
We have an SSRS Report with a subscription. The report gets emailed out to
In SSRS I have created two tables, a parent and a subreport. Both reports

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.