Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS List & Blank Parameters


SSRS List & Blank Parameters

Author
Message
davdam8
davdam8
SSC-Enthusiastic
SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)

Group: General Forum Members
Points: 180 Visits: 668
Hi geniuses!

Is there a way to have a report with 3 multivalue parameters: AREA, LOCATION and PROJECT, exposing only 1 project per page, where the user can or not use all the parameters?

The report has a financial aspect where the info has to be shown :

or by AREA (where the user only uses the AREA parameter, letting the other 2 BLANK);
or by LOCATION (where the user uses the AREA and LOCATION parameter, letting the PROJECT blank);
or by PROJECT (using all the parameters)

Does it sound doable? Having a list group on - PROJECT - and be able to not use the PROJECT parameter?

Thanks in advance!
Scott Murray-240410
Scott Murray-240410
SSC Veteran
SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)

Group: General Forum Members
Points: 249 Visits: 3068
Unfortunately, SSRS does not allow you to show or hide parameters based on a prior parameter. However, you can get around this issue by created dynamic / dependent parameters boxes along with the default values for those parameters. Thus, for the selections that only require 1 parameter, the other 2 parameters would default to some dummy value.
Ed Zann
Ed Zann
Mr or Mrs. 500
Mr or Mrs. 500 (507 reputation)Mr or Mrs. 500 (507 reputation)Mr or Mrs. 500 (507 reputation)Mr or Mrs. 500 (507 reputation)Mr or Mrs. 500 (507 reputation)Mr or Mrs. 500 (507 reputation)Mr or Mrs. 500 (507 reputation)Mr or Mrs. 500 (507 reputation)

Group: General Forum Members
Points: 507 Visits: 1391
The way I would typically do this is to include an OR clause in my SQL query such as
AND (PROJECT = @project OR @project IS NULL)
AND (LOCATION = @location OR @location IS NULL)
AND (AREA= @area OR @area IS NULL)

As far a grouping goes, as long as Project is a field in your dataset you should be able to group on it even if it is left empty in your parms.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search