Click here to Skip to main content
15,893,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I had sql result shown below...

ProjectNO.     Projectname      Client    Programmers
01              ave             zica       dee
01              ave             zica       law
01              ave             zica       amy
01              ave            rowan      dee
01              ave            rowan       law
01              ave             rowan      amy

Now how would I represent this into SSRS as

ProjectNO.    Projectname      Client    Programmers
  01              ave           zica       dee
                                rowan      law
                                           amy

or how can I achieve this without using pivot in query and with ssrs only ?
ProjectNO.   Projectname   Client1   Client2  Programmer1   Programmer2  Programmer3
01           ave           zica      rowan    dee           law           amy
I was confused how to group them all according to Project name and Number.
Posted
Updated 21-Apr-14 4:31am
v2
Comments
Chandra Mohan N 22-Apr-14 0:25am    
you can set the textbox's HideDuplicates property to the containing group name
waleed ahmed wadkar 22-Apr-14 3:23am    
Hey I tried that , and result is ...
note - neglect spacing

ProjectNO. Projectname Client Programmers
01 ave zica dee
rowan
zica law
rowan
zica amy
rowan
ccalma 22-Apr-14 3:39am    
Are you using Server Data Tools in creating the Report?
waleed ahmed wadkar 22-Apr-14 4:25am    
visual studio 2012
ccalma 22-Apr-14 4:41am    
Have you tried creating groups in the Row Groups section?

This question could not be answers with some line of description.

Please refer
http://carlosferreira.com/how-to-combine-values-from-multiple-rows-of-a-single-column-t-sql-microsoft-sql-server-for-xml-path-csv/
 
Share this answer
 
Hi All,

Anyways, I figured it out using Stuff funtion with For XML path I got the answer Just for one column field

with Programmers in single cell (comma sepearted Prgrammers name) and Clients which happened to appear in Single cell instead appeared in individual cell ...like below

HTML
ProjectNO.  Prjtname      Programmers          Client    
01             ave        dee, law, amy        zica        

01             ave        dee, law, amy        rowan    



Any suggestion or examples with (Stuff + For XML path) using individually with each(2 or more ) column... I had applied STuff+FOR XML path for both Programmers and Clients.
 
Share this answer
 
v2

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