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

  • 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

  • Hello

    You can use this expression :

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

    :w00t: !!!GOOGLE IS YOUR BEST FRIEND!!! :w00t:

  • Hi there,

    Can you please publish the solution if you have got one? It might help others as well. Thanks.

  • 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.

  • You're welcome 🙂

    Happy it helped you

    :w00t: !!!GOOGLE IS YOUR BEST FRIEND!!! :w00t:

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply