Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

merging fields??

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

Former Member

Hi Cortni,

Insert a group on Name field and create a formula like this



stringvar txt;

txt:=txt", "{Type field};

now place this formula in details section and suppress the details section

Also create one more formula like



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.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question