Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello everyone.
I tried a lot but didn't find any solution, please help.

I have table like
SQL
ID  Name  CODE
1   AA    0001
2   BB    0002
3   CC    0003
4   DD    0004


and i want result like
SQL
ID  Name  CODE
1   AA    0001
2   BB    0002
3   CC    0003
4   DD    0004
          0001,0002,0003,0004


I want to simply concatenate all the rows values of CODE in single comma separated values.In ssrs report in the tablix expression field.

Your help and suggestion will be appreciable.
Thanks in advance.
Posted
Updated 28-Sep-15 20:56pm
v3
Comments
Maciej Los 29-Sep-15 12:57pm    
Based on what condition?

1 solution

Please refer to this article here
Use RunningValue() Function to Concatenate Row Values[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900