Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Muti-Value Parameter Display in Report Header - Filtering Out Certain Items Expand / Collapse
Author
Message
Posted Sunday, April 21, 2013 8:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, November 17, 2014 5:01 PM
Points: 5, Visits: 35
I created a report where users can select from from a drop-down list that is configured as a multi-value parameter. I know that I can use the =Join(Parameters!Param_Locations.Label) to display all of the selections they've made from the drop-down list on the report. My issue is that although they may have selected a certain item from the list, I want to exclude items that were selected that contain a certain word.

An example of the multi-value parameter list may be:
Select All
LocationA
LocationA Optical
LocationB
LocationB Optical
LocationC
LocationC Optical

The user may, in fact, choose Select All. In this case, all of the locations will be used for the dataset query. But what I would like to do is only list the Locations and NOT the locations that contain the word Optical in them. This would be displayed in the header of the report using some type of =Join(). How can I filter out locations that contain the world Optical?

Any ideas would be appreciated!

Regards,
Babak C
Phoenix, AZ
Post #1444838
Posted Monday, April 29, 2013 3:38 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, June 6, 2014 7:41 AM
Points: 41, Visits: 165
Hello

You can use this expression :

=join(Filter(Parameters!ReportParameter1.Value,"Optical",False),",")

Post #1447422
Posted Monday, April 29, 2013 4:52 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 4:01 AM
Points: 112, Visits: 464
Hi there,

Can you please publish the solution if you have got one? It might help others as well. Thanks.
Post #1447446
Posted Monday, April 29, 2013 11:43 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, November 17, 2014 5:01 PM
Points: 5, Visits: 35
Mohammad, thanks for your help. This solution worked. I could have sworn I tried this and may have missed something. I was about to create a custom assembly and pass an array of values to it and then return the array w/o locations that contained the world "optical." Thanks! Babak.
Post #1447678
Posted Monday, April 29, 2013 1:18 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, June 6, 2014 7:41 AM
Points: 41, Visits: 165
You're welcome :)
Happy it helped you
Post #1447732
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse