on 09-23-2008 7:37 PM
I am working on a report and I need to merge a couple of fields. The problem is the fields are essentially the same field. I've done this before in SAS, but I was wondering if there is a way to do this in Crystal. I know I can group the data, but I'm at a lost after that. Here is the example:
Name Type
Joe dog
Joe cat
Joe snake
Ann dog
Ann snake
Expected Results:
Name Type
Joe dog, cat, snake
Ann dog, snake
Any help would be greatly appreciated. Thanks
Edited by: Cortni Haralson on Sep 23, 2008 8:38 PM
Hi Cortni,
Insert a group on Name field and create a formula like this
@Evaluate:
whileprintingrecords;
stringvar txt;
txt:=txt", "{Type field};
now place this formula in details section and suppress the details section
Also create one more formula like
@Initialize:
whileprintingrecords;
stringvar txt:="";
place this fromula in group header and suppress the group header.
Now place the formula and the field Name one beside the other in group footer that shows the out put in horizontal way.
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.