0

I have a SSRS report with a multivalue parameters JobTitle. But Jobtitle itself contains ','.

So, how to split this multivalue parameter?

For example, I have records :

Responder,supervisor,Field distributor 1,worker,Field distributor

I want:

  1. Responder
  2. supervisor,Field distributor 1
  3. worker,Field distributor
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Deepi
  • 11
  • 4
  • Two questions: first, #2 on your list has an embedded comma, so you don't want to split on commas. What do you want to split on? Second, what are you trying to do with the resulting strings? Include them in a report's output? Use as parameters in a SQL query? – Mike Christie Jul 28 '16 at 14:16
  • I am using this parameter to generate a report, so when I select single parameter, report is fetched properly , but when I select multivalues of this parameter report is blank because I have commas within the name, SO, I cannot split with comma – Deepi Jul 29 '16 at 04:47
  • so is there any way, I can split this multivalue parameter – Deepi Jul 29 '16 at 04:50

1 Answers1

0

I am assuming you want to split at each comma. I used this expression =Fields!JobTitle.Value.tostring().Replace(",",vbcrlf)to get this

enter image description here

Hari
  • 192
  • 2
  • 12