Solved! Go to Solution.
Hi @kcvictor
Could you please post a sample of your Input and desired output (in table format), so we can picture the situation more easily?
Cheers,
Hey @kcvictor,
The attached uses the transpose, record count, and cross tab tools to do this. The only downside is that I had to re sort the column names at the end. You could get around that though with a more complex formula in the formula tool.
Best,
mmenth
Hi @kcvictor
The trick is to include a numeric column for your crosstab tool, and then a dynamic rename to pull in the actual column headers. Otherwise, the Crosstab tool alphabetizes your letters.
The name is generated by adding the record id minus 1 to the existing field names (in the Name2 column out of the Transpose tool)
A second Record ID tool generates the column ID used by the Crosstab tool, and a Dynamic rename matches in the headers.
Let me know if this helps. Workflow is attached.
Cheers!
Esther