Solved

Is there anyway to change the comma delimiter for multiple selections of a parameter in SSRS

Posted on 2010-08-25
6
726 Views
Last Modified: 2012-05-10
I need to allow the users to select more than one parameter value, for example colors, they can select Red, Yellow and Green or just Green.  I know I have to use a split function when feeding this data back to my stored procedure from SSRS, the problem is my data has commas in the name so won't be split correctly all the times. Is there a way for me to change the delimiter in SSRS?
0
Comment
Question by:wilcon
6 Comments
 
LVL 16

Expert Comment

by:vdr1620
ID: 33522737
check this link for Replacing Text in a Field at Run Time

http://msdn.microsoft.com/en-us/library/ms157328.aspx
0
 
LVL 10

Accepted Solution

by:
itcouple earned 500 total points
ID: 33522771
Hi

Yes. When you use Join function is SSRS use can specify different delimeter for instance =Join(@Param, "|") I usually use | as it is quite unique. Your split function in database should also delimiter that you can set as "|"

I hope that helps
Regards
Emil

0
 
LVL 42

Expert Comment

by:dqmq
ID: 33522831
>I know I have to use a split function when feeding this data back to my stored procedure from SSRS

I confess I don't know what you mean by "feeding data back from SSRS".  However, can't you use the replace function to replace comma's in your data with something else and then reverse the process in the stored procedure?

Would be helpful if you could show us the relevant code.
0
 

Author Comment

by:wilcon
ID: 33827918
Updating.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34533080
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now