Support our 100% FREE Projects: Donate Now OR Sponsor Now


  

ssrs concatenate two string fields using expression

In this SSRS Tutorial I will show you how to concatenate two string fields. I will use SQL Server Reporting Services 2008 R2 but it should also work with SSRS 2005, 2008 and SSRS 2012.

Video: You can watch Video Version of this tutorial using the button below or continue reading text based tutorial

Subscribe to me on YouTube

To concatenate two or more fields using expression in SSRS. Please follow my SSRS tutorial.

Below we can see a table and we want to concatenate First Name with Surname to get Full Name.

 

First I Add new column to the Left.

 

Once new column exist we can type the header (Full Name), right click the cell where we want to perform concatenation and then go to Expression.

 

At the beginning of expression I will put First Name field and I will concatenate it with empty space using & " " the trick is to use & and if we use hard coded string we need to enlose it using double quotes " ". Next I will put & to concatinate my empty space with surname field.

See below final expression.

NOTE: If you field is not string data type (for instance integer) you might have to use function to convert it to string.

 

That is table after adding new column in Design view.

 

And the final picture shows the end result

 

I hope this ssrs tutorial will help you to concatenate fields and strings in SSRS.

Katie 

 

Share: Share on FacebookShare on Google PlusTweet it
Comments Add Comment
Name: Reshma
Comment:

Very nice explanation


Date Posted: 17/10/2012 6:47:54 AM

Name: Sony
Comment:

Many Thank Yous!  Quick and easy


Date Posted: 20/02/2013 10:47:32 PM

Share your thoughts, questions and suggest improvements:
Add Comment

You found us! Below are 50 most popular searched keywords

created at TagCrowd.com

Disclaimer: While every caution has been taken to provide our readers with most accurate information and honest analysis, please use your discretion before taking any decisions based on the information in this blog. Author will not compensate you in any way whatsoever if you ever happen to suffer a loss/inconvenience/damage because of/while making use of information in this blog.