if instr(x,{table.name}) = 0 then
(
x := x + {table.name} + ", ";
cnt := cnt + 1
);
totext(cnt,"000") & " " & {table.name} //add as many zeros as the maximum number of names
For this to work you MUST do a record sort using {table.name}.
if instr(x,{table.name}) = 0 then (
x := x + {table.name}+", ";
cnt := cnt + 1
);
cnt
Add this formula as your first row field in the crosstab, and the name field as your second row field. Go to the customize style tab and highlight the formula field->suppress subtotals. There will now be one number per name, but they will be incorrect.
In preview mode, select the 1st row field (the formula field)->right click->format field->common->suppress->x+2 and enter:
whileprintingrecords;
numbervar y := y + 1;
false
Then in the same screen go to display string->x+2 and enter:
I assumed you were doing a group sort on all records. Glad you figured out the fix. Note that I was able to use your formula as the first row of the crosstab.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.