3

I'm trying to concatenate a particular record into one field to avoid multiple rows for the record. The issue is that a drive may contain multiple shifts in which each shift may be assigned a different vehicle.

Screenshot below shows what is happening: enter image description here

Both records show the same drive, but the two shifts. I'd like to get the vehicles column to concatenate all vehicles into one field (Vehicles).

My attempt at an expression is:

=Fields!ShortDesc.Value & "," & Fields!ShortDesc.Value

Which obviously isn't working. Any suggestions on what to do to get this working correctly?

2
  • Which database are you using? Commented Feb 16, 2015 at 21:57
  • I am sorry, I updated my tags but it is MS SQL 2008. Commented Feb 16, 2015 at 22:11

1 Answer 1

2

Easy solution would be to concat in database layer. See following question and answer. If you need to use SSRS solution, answer is running value function, an example here.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I'll try to do this on the DB layer.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.