Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Community,
I have a task which might seems trivial for you, but for me as a rookie, is a kind of challange.
I have following file as input:
OBJID;TABSEQNR;TLINE
30001517;000001;Teamleitung, Betreuung personalwirtschaflticher EDV-Systeme
30001517;000002;SAP-HCM, E-Recruiting, Elektronische Personalakte.
30001517;000003;Arbeitszeitfragen, Personalhaushalt, Budgets, Controlling.
30001520;000001;Betreuung personalwirtschaflticher EDV-Systeme, Schwerpunkt SAP-HCM.
30001520;000002;Arbeitszeitrechtliche Fragestellungen.
30001520;000003;Aufstellung/šberwachung des Personalhaushaltes, Budgetierung.
30126423;000001;Betreuung personalwirtschaflticher EDV-Systeme, Schwerpunkt SAP-HCM.
30126423;000002;Aufstellung/šberwachung des Personalhaushaltes, Budgetierung.
30146451;000001;Betreuung personalwirtschaflticher EDV-Systeme, Schwerpunkt SAP-HCM.
30146451;000002;Aufstellung/šberwachung des Personalhaushaltes, Budgetierung.
30126424;000001;Betreuung personalwirtschaflticher EDV-Systeme, Schwerpunkt E-Recruiting,
30126424;000002;Elektronische Personalakte.
30126424;000003;Arbeitszeitrechtliche Fragestellungen.
30098733;000001;Betreuung personalwirtschaflticher EDV-Systeme, Schwerpunkt SAP-HCM.
30098733;000002;Auswertungen und Statistiken
30122059;000001;Organisationsstellenplan SAP-HCM, Statistiken
30138961;000001;Betreuung personalwirtschaflticher EDV-Systeme, Schwerpunkt E-Recruiting,
30138961;000002;Elektronische Personalakte.
30138961;000003;Arbeitszeitrechtliche Fragestellungen.
30146488;000001;Betreuung personalwirtschaflticher EDV-Systeme, Schwerpunkt SAP-HCM.
30146488;000002;Aufstellung/šberwachung des Personalhaushaltes, Budgetierung.
My goal is to concatenate the text in the column TLINE for all OBJID. For example for 30001517 I want to get a new field which is the result of the concatenation of the following texts
I tried the following code, which is not complete hence it just not get all three parts of the field.
HRV1002A1:
LOAD OBJID,
TABSEQNR,
TLINE
FROM
[..\DATA\HRV1002A.csv]
(txt, utf8, embedded labels, delimiter is ';', msq);
HRV1002ACC:
LOAD
OBJID,
if (RowNo() = 1, Text(TLINE),
if ((Previous(OBJID) = OBJID),
(Text(Previous(TLINE)) & ' ' & Text(TLINE)),
Text(TLINE))) AS Bezeichnung
Resident HRV1002A1
Order by OBJID;
I think I might use a variable, yet I did not figure how to use a variable in a loop (load).
Table:
Load
OBJID,
Concat(TLINE, ',') as newField
resident HRV1002A1
order by OBJID;
Table:
Load
OBJID,
Concat(TLINE, ',') as newField
resident HRV1002A1
order by OBJID;
yet not order by but group by
of ccourse, i sometimes mix them up, when in a hurry 😄