SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Muti-Value Parameter Display in Report Header - Filtering Out Certain Items


Muti-Value Parameter Display in Report Header - Filtering Out Certain Items

Author
Message
bbk0919
bbk0919
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 135
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
Mohamed I.
Mohamed I.
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1214 Visits: 349
Hello

You can use this expression :

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

w00t !!!GOOGLE IS YOUR BEST FRIEND!!! w00t
syedathariqbal
syedathariqbal
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1553 Visits: 623
Hi there,

Can you please publish the solution if you have got one? It might help others as well. Thanks.
bbk0919
bbk0919
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 135
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.
Mohamed I.
Mohamed I.
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1214 Visits: 349
You're welcome Smile
Happy it helped you

w00t !!!GOOGLE IS YOUR BEST FRIEND!!! w00t
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