Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: Combining rows of data into a single value Post Reply Post New Topic
Author Message
amender
Newbie
Newbie


Joined: 13 Jan 2013
Online Status: Offline
Posts: 1
Quote amender Replybullet Topic: Combining rows of data into a single value
    Posted: 13 Jan 2013 at 10:26pm
I have a data as below:

ID DetailID from To

1   202          A        B
2   202          B        C
3   202          C        D
4   202          D        E


I would like to combine it as "A/B/C/D/E" into a single value for 202(DetailID).

result that I needed:

DetailID from/To
202       A/B/C/D/E    


Thanks in advance.

Edited by amender - 13 Jan 2013 at 10:53pm
IP IP Logged
Baratier
Newbie
Newbie


Joined: 13 Apr 2012
Location: Ecuador
Online Status: Offline
Posts: 5
Quote Baratier Replybullet Posted: 11 Mar 2013 at 9:05am
I have a similar issue. have you found a solutuion?
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 18 Mar 2013 at 1:15am
Hi
 
Insert a group on DetailID and use below formulas :
 
 
//Place the below on your group header
Whileprintingrecords;
Stringvar ft:=' ' ;
 
//Place this formula in detail section
Whileprintingrecords;
Stringvar ft:=ft+'/'+From;
 
//Place below formula in your group footer
 
Whileprintingrecords;
Stringvar ft;
 
Now this group footer will display A/B/C/D/E , add group name before to it and suppress all sections except group footer.
 
 
 
Thanks,
Sastry
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.