Hi I have a requirement like below. Can anyone help on this.
We have two columns like specified below.
Column A Column B
X1 10
X1 20
X2 22
X2 32
. .
. '
. .
We need output like specified below.
X1 10;20
X2 22;32
.
.
.
Could anypne please help me on this issue
Thanks in Advance
how to handle the below reuirement
Moderators: chulett, rschirm, roy
Sort your data on Column A, then use stage variables and constraints in a transform stage along the following format:
Constraint is "NewCol = 1", the 2 output columns are derived from "OutColumnA" and "OutList".
Code: Select all
NewCol = IF(In.ColumnA=LastColumnA) THEN 1 ELSE 0
OutColumnA = IF NewCol=1 THEN LastColumnA ELSE ''
LastColumnA = In.ColumnA
OutList = IF NewCol=1 THEN ListString ELSE ''
ListString = IF NewCol=1 THEN '' ELSE ListString:';':In.ColumnB
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>